Skip to content

Commit

Permalink
chore(operator): merge two last steps on
Browse files Browse the repository at this point in the history
operator-check-prepare-release-commit
  • Loading branch information
JoaoBraveCoding committed Apr 10, 2024
1 parent 299c426 commit d880c24
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/operator-check-prepare-release-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,14 @@ jobs:

- name: Check main commits for prepare release commit
id: check_commit
env:
env:exit 1
GH_TOKEN: ${{ secrets.GH_TOKEN }}
working-directory: "release"
run: |
COMMIT=$(gh search commits "chore(operator): prepare community release v${{ steps.pr_semver.outputs.semver }}")
if [ -n "$COMMIT" ]; then
echo "Matching commit found."
echo "found=true" >> $GITHUB_OUTPUT
echo "Prepare release commit found."
else
echo "No matching commit found."
echo "found=false" >> $GITHUB_OUTPUT
echo "No prepare release commit found for the release version ${{ steps.pr_semver.outputs.semver }}"
exit 1
fi
- name: Fail if no prepare release commit
if: steps.check_commit.outputs.found == 'false'
run: |
echo "No prepare release commit found for the release version ${{ steps.pr_semver.outputs.semver }}"
exit 1

0 comments on commit d880c24

Please sign in to comment.