Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update merge-requires.yml #274

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions .github/workflows/merge-requires.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
# This workflow configures the repository specific choices of which CI builds
# must pass in order for a build to merge. This allows a sinlge global teraform
# must pass in order for a build to merge. This allows a single global teraform
# configured rule to require a "well known" check in each repository. Whilst
# granting repository stakeholders the ability configure what workflows are
# appropriate to satisfy that check.
name: Merge Requires
on:
push:

on: [pull_request]

jobs:
ci:
secrets: inherit
uses: ./.github/workflows/ci.yml
release:
if: ${{ github.event_name == 'release' }}
secrets: inherit
uses: ./.github/workflows/package.yml

merge-checks-ok:
runs-on: ubuntu-latest
Expand All @@ -23,12 +19,3 @@ jobs:
- name: ok
run: |
echo "This code is mergeable"

release-checks-ok:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'release' }}
needs: [ci, release]
steps:
- name: ok
run: |
echo "This code is releasable"
5 changes: 3 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
name: Package and Publish

on:
workflow_call:
release:
types: [created]

jobs:
build:
deploy:

runs-on: ubuntu-latest

Expand Down
Loading