Skip to content

Commit

Permalink
ci: fix prod gh action - checks
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina committed Aug 8, 2024
1 parent fd0e397 commit 0401e11
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build-prod-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@ jobs:
needs: [ code-analysis, ui-tests, unit-tests ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive # Needed in order to fetch Kalium sources for building
fetch-depth: 0

- name: Verify release target commit
id: verify_commit
run: |
release_commit=$(git rev-parse ${{ github.event.release.target_commitish }})
prod_commit=$(git rev-parse refs/heads/prod)
release_commit=$(git rev-parse --short "$GITHUB_SHA")
prod_commit=$(git rev-parse --short refs/heads/prod)
if [[ "$release_commit" != "$prod_commit" ]]; then
echo "Error: The commit associated with the release tag is not the same as the HEAD of the prod branch."
Expand All @@ -50,11 +56,6 @@ jobs:
echo "Current tag ($current_tag) is equal or higher than latest tag ($latest_tag). Continuing the workflow."
fi
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive # Needed in order to fetch Kalium sources for building
fetch-depth: 0
- name: Set up JDK 17
uses: buildjet/setup-java@v4
with:
Expand Down

0 comments on commit 0401e11

Please sign in to comment.