Skip to content

Commit

Permalink
fix prerelease logic again
Browse files Browse the repository at this point in the history
  • Loading branch information
monacoremo committed Aug 5, 2021
1 parent e5bbfd6 commit 460e775
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/get_cirrusci_freebsd
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ wait_for_cirrusci() {
gh_check_runs_url="$(get_gh_check_runs_url)"
>&2 echo "Waiting to CirrusCI run to complete (two hours maximum)..."
for _ in $(seq 1 120); do
echo "Checking for CirrusCI task status at $gh_check_runs_url ..."
status=$(curl --fail "$gh_check_runs_url" | jq -r '.check_runs[] | .status')
if [ "$status" == "completed" ]; then
break
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ jobs:
needs: Prepare-Release
env:
VERSION: ${{ needs.Prepare-Release.outputs.version }}
ISPRERELEASE: ${{ needs.Prepare-Release.outputs.isprerelease }}
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v13
Expand Down Expand Up @@ -313,15 +312,16 @@ jobs:

- name: Publish release on GitHub
run: |
echo "Releasing version v$VERSION on GitHub (PRERELEASE=$PRERELEASE)..."
isprerelease="${{ needs.Prepare-Release.outputs.isprerelease }}"
echo "Releasing version v$VERSION on GitHub (isprerelease=$isprerelease)..."
ghr \
-t "${{ secrets.GITHUB_TOKEN }}" \
-u "$GITHUB_USERNAME" \
-r "$GITHUB_REPONAME" \
-b "$(cat artifacts/release-changes/CHANGES.md)" \
-replace \
${ISPRERELEASE:+"-prerelease"} \
${isprerelease:+"-prerelease"} \
"v$VERSION" \
release-bundle
Expand Down

0 comments on commit 460e775

Please sign in to comment.