Skip to content

Commit

Permalink
fix workflow concurency (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skitionek authored Apr 4, 2024
1 parent 7118c00 commit eb2c846
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/call_webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
}
EOF
)
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ name: Integration Checks
on:
workflow_dispatch:
pull_request:
push:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
appserver:
Expand All @@ -13,13 +20,7 @@ jobs:
DOCKER_COMPOSE_CMD: docker compose -f docker-compose.ci-test.yml

steps:
- name: Cancel Previous Runs
if: github.event_name != 'workflow_dispatch'
uses: styfle/cancel-workflow-action@0.10.0
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Create environment variable to pass in GitHub hash for Docker Compose
run: echo "GITHUB_HASH=${{ github.sha }}" >> .env
Expand Down

0 comments on commit eb2c846

Please sign in to comment.