-
-
Notifications
You must be signed in to change notification settings - Fork 240
43 lines (36 loc) · 931 Bytes
/
main.yaml
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
name: CI
on:
pull_request:
push:
branches: main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
uses: ./.github/workflows/lint.yaml
generate-inputs:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
outputs:
sha-tag: ${{ steps.sha-tag.outputs.sha-tag }}
steps:
- name: Create SHA Container Tag
id: sha-tag
run: |
tag=$(cut -c 1-7 <<< $GITHUB_SHA)
echo "sha-tag=$tag" >> $GITHUB_OUTPUT
build-deploy:
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/build-deploy.yaml
needs:
- lint
- generate-inputs
with:
sha-tag: ${{ needs.generate-inputs.outputs.sha-tag }}
secrets: inherit
sentry-release:
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/sentry_release.yaml
needs: build-deploy
secrets: inherit