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

fix: INTMDB-1052: Update the release flow to remove the acceptance steps #1443

Merged
merged 1 commit into from
Sep 4, 2023
Merged
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
31 changes: 1 addition & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,9 @@ on:
push:
tags:
- 'v*'
jobs:
# Check that the last run of the acceptance tests was successful
# We run the acceptance tests only if the last run of the sceduled workflow failed
check-acceptance-tests-status:
runs-on: ubuntu-latest
outputs:
acceptance_tests_status: ${{ steps.lastJobStatus.outputs.test }}
steps:
- name: Check last job status
id: lastJobStatus
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
LAST_JOB_STATUS=$(gh run list --workflow acceptance-tests.yml |grep -oh "completed.*" | grep -h "schedule.*" | head -1 | awk '{print $2}')
echo "acceptanceTestsStatus=${LAST_JOB_STATUS}" >> $GITHUB_OUTPUT
# We run the acceptance tests only if the last run of the sceduled workflow failed
run-accettance-tests-workflow:
needs: [ check-acceptance-tests-status ]
if: ${{ needs.check-acceptance-tests-status.outputs.acceptance_tests_status != 'success'}}
secrets: inherit
permissions:
contents: write
pull-requests: read
repository-projects: read
uses: ./.github/workflows/acceptance-tests.yml
with:
parent-event-name: 'release'
# Release the provider
jobs:
goreleaser:
runs-on: ubuntu-latest
needs: [ check-acceptance-tests-status, run-accettance-tests-workflow ]
if: always() && !cancelled() && !failure()
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
Loading