fix the creds issue in workflow

This commit is contained in:
Anirban Kar 2024-12-13 14:33:43 +05:30
parent aba0fc8a45
commit e8403fe019

View File

@ -15,11 +15,8 @@ jobs:
pull-requests: read pull-requests: read
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure Git - name: Configure Git
run: | run: |
git config --global user.name 'github-actions[bot]' git config --global user.name 'github-actions[bot]'
@ -178,12 +175,12 @@ jobs:
git tag -a "$VERSION" -m "Release $VERSION" git tag -a "$VERSION" -m "Release $VERSION"
git push origin "$VERSION" git push origin "$VERSION"
- name: Create GitHub Release # - name: Create GitHub Release
env: # env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | # run: |
VERSION="v${{ steps.bump_version.outputs.new_version }}" # VERSION="v${{ steps.bump_version.outputs.new_version }}"
gh release create "$VERSION" \ # gh release create "$VERSION" \
--title "Release $VERSION" \ # --title "Release $VERSION" \
--notes "${{ steps.changelog.outputs.content }}" \ # --notes "${{ steps.changelog.outputs.content }}" \
--target stable # --target stable