generated from Debdut/browser-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.18 KB
/
main.yml
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
name: main
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}-${{ github.ref == 'refs/heads/main' && github.sha || ''}}
cancel-in-progress: true
jobs:
determine-version:
uses: StaflSystems/CustomGitHubActions/.github/workflows/determine-version.yml@main
secrets: inherit
lint:
uses: ./.github/workflows/lint.yml
secrets: inherit
build:
uses: ./.github/workflows/build.yml
secrets: inherit
needs: [ determine-version ]
with:
version_full: ${{ needs.determine-version.outputs.version_full }}
version_major: ${{ needs.determine-version.outputs.version_major }}
version_minor: ${{ needs.determine-version.outputs.version_minor }}
version_patch: ${{ needs.determine-version.outputs.version_patch }}
version_build: ${{ needs.determine-version.outputs.version_build }}
current_branch: ${{ needs.determine-version.outputs.current_branch }}
tag:
uses: ./.github/workflows/tag.yml
secrets: inherit
needs: [ determine-version, build, lint ]
with:
version_full: ${{ needs.determine-version.outputs.version_full }}