Skip to content

Commit

Permalink
Release PAT testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AniFichadia committed Jan 31, 2025
1 parent 46659b6 commit 3bc4bdd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.RELEASE_PAT }}
fetch-depth: 0

- name: Resolve dry run flags
Expand Down Expand Up @@ -65,14 +66,19 @@ jobs:
echo "version_changed=false" >> $GITHUB_ENV
fi
- name: Create release on version changes
- name: Create Github Release on version changes
if: env.dry_run == 'false' && env.version_changed == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
run: |
gh release create "$current_version" \
--title "$current_version" \
--generate-notes \
- name: Create tag on version changes
if: env.dry_run == 'false' && env.version_changed == 'true'
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
run: |
git tag "$current_version"
git push origin "$current_version"
git push origin tag "$current_version"

0 comments on commit 3bc4bdd

Please sign in to comment.