Skip to content

Commit

Permalink
bugfix: gh_token env name
Browse files Browse the repository at this point in the history
  • Loading branch information
leon3s committed May 12, 2023
1 parent 1c2263e commit 4a1f46c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/draft_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ jobs:
continue-on-error: true
run: gh release view $BINARY_NAME-$VERSION-$CHANNEL
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
- name: Create new draft release
if: steps.release-exists.outcome == 'failure' && steps.release-exists.conclusion == 'success'
run: gh release create -d $BINARY_NAME-$VERSION-$CHANNEL -t $BINARY_NAME-$VERSION-$CHANNEL -F changelog.md target/debian/${BINARY_NAME}_${VERSION}_amd64.deb#c2ncl_amd64.deb
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
- name: Update draft release
if: steps.release-exists.outcome == 'success' && steps.release-exists.conclusion == 'success'
run: |
gh release delete-asset -y $BINARY_NAME-$VERSION-$CHANNEL ${BINARY_NAME}_${VERSION}_amd64.deb || true
gh release upload $BINARY_NAME-$VERSION-$CHANNEL target/debian/${BINARY_NAME}_${VERSION}_amd64.deb#c2ncl_amd64.deb
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
GH_TOKEN: ${{ secrets.BOT_TOKEN }}

0 comments on commit 4a1f46c

Please sign in to comment.