Skip to content

Commit

Permalink
Remove duplicate repo owner and fix smoke test requirement (#5791)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 authored Jun 19, 2024
1 parent bd325f4 commit 5b50945
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -754,13 +754,15 @@ jobs:
if: ${{ always() }}
runs-on: ubuntu-22.04
name: Final CI Results
needs: [tag-stable]
needs: [tag-stable, smoke-tests]
steps:
- run: |
result="${{ needs.tag-stable.result }}"
if [[ $result == "success" || $result == "skipped" ]]; then
exit 0
else
tagResult="${{ needs.tag-stable.result }}"
smokeResult="${{ needs.smoke-tests.result }}"
if [[ $tagResult != "success" && $tagResult != "skipped" ]]; then
exit 1
fi
if [[ $smokeResult != "success" && $smokeResult != "skipped" ]]; then
exit 1
fi
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -413,12 +413,12 @@ jobs:
run: |
milestone_number=$(gh api \
-H "Accept: application/vnd.github.v3+json" \
/repos/${{ github.repository_owner }}/${{ github.repository }}/milestones \
/repos/${{ github.repository }}/milestones \
| jq --arg version ${{ inputs.nic_version }} -r \
'.[] | select(.title == $version) | .number')
if ! ${{ inputs.dry_run }}
gh api --method PATCH -H "Accept: application/vnd.github.v3+json" \
/repos/${{ github.repository_owner }}/${{ github.repository }}/milestones/${milestone_number} \
/repos/${{ github.repository }}/milestones/${milestone_number} \
else
echo "Skipping closing Github Release milestone, DRY_RUN"
fi
Expand All @@ -431,7 +431,7 @@ jobs:
release_id=$(gh api \
-H "Accept: application/vnd.github.v3+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/${{ github.repository_owner }}/${{ github.repository }}/releases \
/repos/${{ github.repository }}/releases \
| jq --arg version ${{ inputs.nic_version }} -r \
'.[] | select(.name == $version) | .id')
echo "release_id=${release_id}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 5b50945

Please sign in to comment.