Skip to content

Commit

Permalink
Merge pull request nexodus-io#1997 from chirino/promot-ci
Browse files Browse the repository at this point in the history
Fix promote action to allow skipping qa dev.
  • Loading branch information
chirino authored Mar 19, 2024
2 parents 4da151e + aeb8fbb commit ae88ea7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ on:

jobs:
run-qa-dev:
if: github.event.inputs.skip_qa_dev != 'true'

# Dispatch the qa-dev workflow to validate main prior to promotion
runs-on: ubuntu-latest
Expand All @@ -28,14 +27,17 @@ jobs:

steps:
- name: Checkout code
if: github.event.inputs.skip_qa_dev != 'true'
uses: actions/checkout@v4

- name: Capture current timestamp
if: github.event.inputs.skip_qa_dev != 'true'
run: |
current_time=$(date --utc +%Y-%m-%dT%H:%M:%S+00:00)
echo "current_time=${current_time}" >> "$GITHUB_ENV"
- name: Dispatch the qa-dev workflow
if: github.event.inputs.skip_qa_dev != 'true'
run: |
curl -X POST \
-H "Authorization: token ${{secrets.GITHUB_TOKEN}}" \
Expand All @@ -45,6 +47,7 @@ jobs:
echo "Triggered qa-dev Workflow."
- name: Wait for qa-dev workflow to complete
if: github.event.inputs.skip_qa_dev != 'true'
timeout-minutes: 30
run: |
check_status() {
Expand Down

0 comments on commit ae88ea7

Please sign in to comment.