Skip to content

Commit

Permalink
fix(github-actions): Add org pat as auth for push (#53)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Park <mike@mhpark.me>
  • Loading branch information
KingMichaelPark and Michael Park authored Jan 23, 2024
1 parent 123eea2 commit 1bef524
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/bump-tag.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Bump and Tag

# Controls when the action will run.
on:
Expand All @@ -11,10 +11,7 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"

bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
Expand All @@ -29,6 +26,6 @@ jobs:
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.ORG_PAT }}
changelog_increment_filename: body.md
increment: PATCH
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: goreleaser
name: Release

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "*"

workflow_dispatch:

Expand All @@ -20,7 +20,6 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --rm-dist
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-verify.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go package
name: Test & Verify

on: [push]

Expand Down

0 comments on commit 1bef524

Please sign in to comment.