Skip to content

Commit d24d80e

Browse files
INTMDB-1052: Update the release flow to remove the acceptance steps (#1443)
1 parent 7eb0bb5 commit d24d80e

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,9 @@ on:
33
push:
44
tags:
55
- 'v*'
6-
jobs:
7-
# Check that the last run of the acceptance tests was successful
8-
# We run the acceptance tests only if the last run of the sceduled workflow failed
9-
check-acceptance-tests-status:
10-
runs-on: ubuntu-latest
11-
outputs:
12-
acceptance_tests_status: ${{ steps.lastJobStatus.outputs.test }}
13-
steps:
14-
- name: Check last job status
15-
id: lastJobStatus
16-
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
run: |
19-
LAST_JOB_STATUS=$(gh run list --workflow acceptance-tests.yml |grep -oh "completed.*" | grep -h "schedule.*" | head -1 | awk '{print $2}')
20-
echo "acceptanceTestsStatus=${LAST_JOB_STATUS}" >> $GITHUB_OUTPUT
21-
# We run the acceptance tests only if the last run of the sceduled workflow failed
22-
run-accettance-tests-workflow:
23-
needs: [ check-acceptance-tests-status ]
24-
if: ${{ needs.check-acceptance-tests-status.outputs.acceptance_tests_status != 'success'}}
25-
secrets: inherit
26-
permissions:
27-
contents: write
28-
pull-requests: read
29-
repository-projects: read
30-
uses: ./.github/workflows/acceptance-tests.yml
31-
with:
32-
parent-event-name: 'release'
33-
# Release the provider
6+
jobs:
347
goreleaser:
358
runs-on: ubuntu-latest
36-
needs: [ check-acceptance-tests-status, run-accettance-tests-workflow ]
37-
if: always() && !cancelled() && !failure()
389
steps:
3910
- name: Checkout
4011
uses: actions/checkout@v3

0 commit comments

Comments
 (0)