Use GH_PAT_TOKEN in goreleaser

`GITHUB_TOKEN` does not trigger events for other github actions to use
This commit is contained in:
Adriano Caloiaro 2024-01-15 18:10:31 -07:00
parent 60b9d391a2
commit d9cc81dbc5
No known key found for this signature in database
GPG key ID: 920633857147D83D
4 changed files with 5 additions and 24 deletions

View file

@ -1,19 +0,0 @@
name: "Publish every Git push to master to FlakeHub"
on:
push:
branches:
- "master"
jobs:
flakehub-publish:
runs-on: "ubuntu-latest"
permissions:
id-token: "write"
contents: "read"
steps:
- uses: "actions/checkout@v3"
- uses: "DeterminateSystems/nix-installer-action@main"
- uses: "DeterminateSystems/flakehub-push@main"
with:
name: "acaloiaro/di-tui"
rolling: true
visibility: "public"

View file

@ -16,7 +16,7 @@ jobs:
- name: Bump version and push tag
uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_PAT_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch
- name: Set up Go
@ -29,4 +29,4 @@ jobs:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_PAT_TOKEN }}

View file

@ -13,8 +13,8 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT_TOKEN }} # Needs write access to the repo
ref: main
- name: Update defaultnix
ref: master
- name: Update default.nix
uses: MathieuSoysal/file-updater-for-release@v1.0.3
with:
files: default.nix # List of files to update

View file

@ -14,7 +14,7 @@
buildGoApplication {
pname = "di-tui";
version = "1.3.28";
version = "v1.3.8";
pwd = ./.;
src = ./.;
modules = ./gomod2nix.toml;