Skip to content

Commit

Permalink
Merge pull request #240 from vshn/fix/package_gh_action
Browse files Browse the repository at this point in the history
Use Github action PAT to push to master
  • Loading branch information
TheBigLee authored Oct 10, 2023
2 parents 47c102b + 96d0705 commit 6d8fcc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ jobs:
- uses: actions/checkout@v4
with:
ref: 'master'
token: ${{ secrets.GH_ACTION_PAT }}
- name: set tag env
run: echo "TAG_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Change version in package
run: |
yq -i '.parameters."pkg.appcat".componentVersion = "${{ env.TAG_VERSION }}"' package/main.yaml
- uses: actions-js/push@v1.4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GH_ACTION_PAT }}
message: "Update component version in package to ${{ env.TAG_VERSION }}"
branch: 'master'

0 comments on commit 6d8fcc5

Please sign in to comment.