Skip to content

Commit

Permalink
Added consolidated ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat committed Jun 11, 2024
1 parent 752dc77 commit 8973a8a
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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/**
- .*
- README.md
push:
branches:
- 'release-*'
paths:
- 'metadata.yaml'
issue_comment:
types:
- created
- edited
jobs:
pr:
name: PR
if: github.event_name == 'pull_request'
uses: access-nri/model-config-tests/.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: access-nri/model-config-tests/.github/workflows/config-pr-2-comment.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: access-nri/model-config-tests/.github/workflows/config-pr-3-bump-tag.yml@main
secrets: inherit
permissions:
contents: write # For creating a new release

0 comments on commit 8973a8a

Please sign in to comment.