Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to gh from hub in workflows #72

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/nightlies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if ! hub -C nightlies release show '${{ matrix.setting.release }}' >/dev/null 2>&1; then
cat << EOF | hub -C nightlies release create -a nim/output/* -F - '${{ matrix.setting.release }}' >/dev/null
if ! gh -C nightlies release show '${{ matrix.setting.release }}' >/dev/null 2>&1; then
cat << EOF | gh -C nightlies release create -a nim/output/* -F - '${{ matrix.setting.release }}' >/dev/null
Nightly build on $(date -u --date="@$SOURCE_CODE_EPOCH" "+%F") for branch ${{ matrix.setting.branch }}

Commit: https://github.com/nim-lang/Nim/commit/${{ matrix.setting.commit }}
Expand Down Expand Up @@ -426,8 +426,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd nightlies
if ! hub release show -f '%as' '${{ matrix.setting.release }}' | grep "$(basename '${{ steps.release.outputs.artifact }}')" >/dev/null 2>&1; then
hub release edit -m '' -a '${{ steps.release.outputs.artifact }}' '${{ matrix.setting.release }}'
if ! gh release show -f '%as' '${{ matrix.setting.release }}' | grep "$(basename '${{ steps.release.outputs.artifact }}')" >/dev/null 2>&1; then
gh release edit -m '' -a '${{ steps.release.outputs.artifact }}' '${{ matrix.setting.release }}'
else
echo "Binary already released for tag '${{ matrix.setting.release }}', not overwritting."
fi
Expand Down