-
Notifications
You must be signed in to change notification settings - Fork 62
48 lines (41 loc) · 1.29 KB
/
auto-release.yml
File metadata and controls
48 lines (41 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Auto-Release
on:
push:
branches:
- develop
jobs:
semantic-version:
name: Semantic version
runs-on: ubuntu-latest
outputs:
release-tag: ${{ steps.semantic.outputs.git-tag }}
permissions:
checks: read # to wait for required checks
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# TODO(CG-10743): clean-up once we remove LFS
- name: Remove pre-push hook
run: rm -f .git/hooks/pre-push
- name: Wait for required checks
uses: poseidon/wait-for-status-checks@v0.6.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
match_pattern: "(unit-tests|integration-tests)"
- uses: codfish/semantic-release-action@v3
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
if: ${{ needs.semantic-version.outputs.release-tag }}
needs: semantic-version
uses: ./.github/workflows/release.yml
permissions:
contents: write
secrets: inherit
with:
release-tag: ${{ needs.semantic-version.outputs.release-tag }}