From 0eac1eba56de447d64f30e8e374cde7740fe6082 Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Fri, 11 Oct 2024 14:56:55 -0400 Subject: [PATCH] CI: Port appropriate workflows to call check-format --- .github/workflows/pr-pull.yaml | 20 ++++++++++++++++++++ .github/workflows/push.yaml | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/pr-pull.yaml create mode 100644 .github/workflows/push.yaml diff --git a/.github/workflows/pr-pull.yaml b/.github/workflows/pr-pull.yaml new file mode 100644 index 000000000..b2ffa34c3 --- /dev/null +++ b/.github/workflows/pr-pull.yaml @@ -0,0 +1,20 @@ +name: Pull +run-name: ${{ github.event.pull_request.title }} pull request run 🚀 +on: + workflow_dispatch: + pull_request: + paths-ignore: + - '**.md' + branches: [master] + types: [ opened, synchronize, reopened ] +permissions: + contents: read +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true +jobs: + check-format: + name: Format 🔍 + uses: ./.github/workflows/check-format.yaml + permissions: + contents: read diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml new file mode 100644 index 000000000..c6f8521ce --- /dev/null +++ b/.github/workflows/push.yaml @@ -0,0 +1,20 @@ +name: Push +run-name: ${{ github.ref_name }} push run 🚀 +on: + push: + paths-ignore: + - '**.md' + branches: + - master + - 'release/**' + tags: + - '*' +permissions: + contents: write +jobs: + check-format: + name: Format 🔍 + if: github.ref_name == 'master' + uses: ./.github/workflows/check-format.yaml + permissions: + contents: read