-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.22 KB
/
ci.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
44
45
46
47
48
49
50
51
52
53
54
55
name: Run CI/CD Jobs
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
concurrency:
group: 'busticated/jsville'
jobs:
info:
name: Harvest Commit Info
runs-on: ubuntu-latest
outputs:
tags: ${{ steps.info.outputs.tags }}
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
with:
fetch-tags: true
- name: Set Info
id: info
run: ./bin/ci-set-commit-info.sh
debug:
name: Debug
needs: info
runs-on: ubuntu-latest
steps:
- name: Log Info
run: |
echo ":::: GIT REF: ${{github.ref}}"
echo ":::: GIT REF_NAME: ${{github.ref_name}}"
echo ":::: TAGS: ${{needs.info.outputs.tags}}"
- name: Test Tag Check
if: contains(needs.info.outputs.tags, '@')
run: |
echo ":::: FOUND TAGS"
test:
name: Run Tests
needs: [info, debug]
uses: ./.github/workflows/test.yaml
secrets: inherit
publish:
name: Publish
needs: [info, debug, test]
if: github.ref_name == 'main' && contains(needs.info.outputs.tags, '@bust/')
uses: ./.github/workflows/publish.yaml
secrets: inherit
with:
tags: ${{needs.info.outputs.tags}}