-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.38 KB
/
ci.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
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
run-name: CI (${{ github.event_name }}) for ${{ github.ref_name }}
on:
pull_request:
branches:
- 'release-*'
- 'dev-*'
paths-ignore:
# These are ignored because they don't have anything to do with the model itself
- .github/**
- tools/**
- doc/**
- config/**
- .*
- README.md
push:
branches:
- 'release-*'
paths:
- 'metadata.yaml'
issue_comment:
types:
- created
- edited
jobs:
pr:
name: PR
if: github.event_name == 'pull_request'
uses: codegat-test-org/meta-model-configs/.github/workflows/config-pr-1-ci.yml@main
secrets: inherit
permissions:
contents: write
pull-requests: write # For pull request comments denoting failure of the workflow
checks: write
pr-comment:
name: Comment
if: github.event_name == 'issue_comment'
uses: codegat-test-org/meta-model-configs/.github/workflows/config-pr-2-confirm.yml@main
secrets: inherit
permissions:
contents: write # For updating metadata.yaml version and committing checksums
pull-requests: write # For commenting on PR
bump-tag:
name: Tag Bump
if: github.event_name == 'push'
uses: codegat-test-org/meta-model-configs/.github/workflows/config-pr-3-bump-tag.yml@main
secrets: inherit
permissions:
contents: write # For creating a new release