Skip to content

Commit

Permalink
ci: fix concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
fbuireu committed Sep 12, 2024
1 parent 83534b4 commit 8f851be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: E2E Tests
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
env:
CI: true
E2E_URL: ${{ github.event_name == 'workflow_dispatch' && 'https://biancafiore.me' || 'http://localhost:4321' }}
E2E_URL: ${{ github.event_name == 'workflow_dispatch' && vars.E2E_PRODUCTION_URL || vars.E2E_SELF_HOSTED_URL }}
jobs:
e2e-tests:
name: Run E2E tests
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Release
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -39,7 +42,7 @@ jobs:
run: |
git fetch --tags
if git rev-parse "${{ env.TAG_NAME }}" >/dev/null 2>&1; then
echo "tag already exists. Cancelling the release."
echo "Tag already exists. Cancelling the release."
exit 1
fi
check-version:
Expand Down

0 comments on commit 8f851be

Please sign in to comment.