Skip to content

Commit 64989ab

Browse files
committed
ci: release waits for CI to pass before publishing
1 parent 1eb9898 commit 64989ab

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: ci
33
on:
44
push:
55
branches: [main]
6+
tags: ['v*']
67
pull_request:
78
branches: [main]
89

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,27 @@ name: release
33
permissions:
44
id-token: write
55
contents: write
6+
actions: read
67

78
on:
89
push:
910
tags:
1011
- 'v*'
1112

1213
jobs:
14+
wait-for-ci:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Wait for CI to complete
18+
uses: lewagon/wait-on-check-action@v1.3.4
19+
with:
20+
ref: ${{ github.sha }}
21+
check-name: ci
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}
23+
wait-interval: 10
24+
1325
release:
26+
needs: wait-for-ci
1427
runs-on: ubuntu-latest
1528
steps:
1629
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)