Skip to content

Commit

Permalink
fix(status-checks): switching to a polling job for status checks (#686)
Browse files Browse the repository at this point in the history
* fix(status-checks): switching to a polling job for status checks

* fix(name): cleaning environment name
  • Loading branch information
bassrock authored Aug 21, 2024
1 parent 4ddcc53 commit da385e3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .github/actions/ecs-codedeploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ runs:
with:
token: ${{ github.token }}
environment-url: https://${{ fromJSON(inputs.terraform-output).ecs-application-url.value }}
environment: ${{ inputs.name }}${{ github.ref == 'refs/heads/dev' && '-dev' }}
environment: ${{ inputs.name }}${{ github.ref == 'refs/heads/dev' && '-dev' || '' }}
transient-environment: ${{ github.ref == 'refs/heads/main' && 'false' || 'true' }}
production-environment: ${{ github.ref == 'refs/heads/main' && 'true' || 'false' }}
initial-status: pending
Expand Down
52 changes: 11 additions & 41 deletions .github/workflows/status-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,19 @@
# We also use this because re-usable workflows can not be targeted for Github Required Status Checks as of 8/15/2024
name: Status Checks
on:
workflow_run:
workflows:
- Pull Request
- User API
- List API
- Account Delete Monitor
- Annotations API
- Braze
- Client API
- Feature Flags
- FxA Webhook Proxy
- Image API
- Instant Sync Events
- Parser GraphQL Wrapper
- Pocket Event Bridge
- Push Server
- Sendgrid Data
- Shareable Lists API
- Shared Snowplow Consumer
- Shares API
- Transactional Emails
- V3 Proxy API
- User List Search
types: [ completed ]
pull_request:

jobs:
status-check:
runs-on: ubuntu-latest

if: always()
steps:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-workflow-run-wait@v1

# Note: If the workflow_run trigger does not work out, this can be used instead with a pull_request event to trigger a long polling job.
# status-check:
# runs-on: ubuntu-latest
# steps:
# - name: Wait for workflows
# id: wait
# uses: smartcontractkit/chainlink-github-actions/utils/wait-for-workflows@main
# with:
# max-timeout: "900"
# polling-interval: "15"
# exclude-workflow-names: ""
# exclude-workflow-ids: ""
# github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Wait for workflows
id: wait
uses: smartcontractkit/chainlink-github-actions/utils/wait-for-workflows@main
with:
max-timeout: "900"
polling-interval: "15"
exclude-workflow-names: ""
exclude-workflow-ids: ""
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit da385e3

Please sign in to comment.