Skip to content

Commit

Permalink
ci.yml: Added 'on.create' trigger from ACCESS-NRI/model-configs-templ…
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat committed Sep 5, 2024
1 parent c557de0 commit 35136c3
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI
run-name: CI (${{ github.event_name }}) for ${{ github.ref_name }}
on:
# For config-pr-1-ci.yml
pull_request:
branches:
- 'release-*'
Expand All @@ -13,15 +14,19 @@ on:
- config/**
- .*
- README.md
# For config-pr-2-confirm.yml
issue_comment:
types:
- created
- edited
# For config-pr-3-bump-tag.yml
create:
push:
branches:
- 'release-*'
paths:
- 'metadata.yaml'
issue_comment:
types:
- created
- edited

jobs:
pr:
name: PR
Expand All @@ -31,7 +36,7 @@ jobs:
permissions:
contents: write
pull-requests: write # For pull request comments denoting failure of the workflow
checks: write
checks: write # For results of tests as a check

pr-comment:
name: Comment
Expand All @@ -44,7 +49,7 @@ jobs:

bump-tag:
name: Tag Bump
if: github.event_name == 'push' && github.repository != 'ACCESS-NRI/model-configs-template'
if: github.event_name == 'push' || (github.event_name == 'create' && github.ref_type == 'branch' && startsWith(github.ref_name, 'release-')) && github.repository != 'ACCESS-NRI/model-configs-template'
uses: access-nri/model-config-tests/.github/workflows/config-pr-3-bump-tag.yml@main
secrets: inherit
permissions:
Expand Down

0 comments on commit 35136c3

Please sign in to comment.