From 56593b492daa71be6a4030698ea7e812fe921938 Mon Sep 17 00:00:00 2001 From: Ramiz Polic Date: Wed, 29 Nov 2023 12:11:42 +0100 Subject: [PATCH] feat(GA): add common pipeline actions --- .github/workflows/checks.yaml | 18 ------------------ .github/workflows/pr-sync.yml | 16 ++++++++++++++++ .github/workflows/project-sync.yml | 13 +++++++++++++ 3 files changed, 29 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/checks.yaml create mode 100644 .github/workflows/pr-sync.yml create mode 100644 .github/workflows/project-sync.yml diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml deleted file mode 100644 index 9511f75d..00000000 --- a/.github/workflows/checks.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: PR Checks - -on: - pull_request: - -permissions: - contents: read - -jobs: - verify-commits: - name: Verify Commits - runs-on: ubuntu-latest - - steps: - - name: Block Merge Commits - uses: Morishiri/block-merge-commits-action@v1.0.1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr-sync.yml b/.github/workflows/pr-sync.yml new file mode 100644 index 00000000..c7164a02 --- /dev/null +++ b/.github/workflows/pr-sync.yml @@ -0,0 +1,16 @@ +name: PR + +on: + pull_request_target: + types: + - opened + - edited + - reopened + - synchronize + +jobs: + sync: + uses: bank-vaults/.github/.github/workflows/_pr-sync.yml@main + permissions: + pull-requests: write + issues: write diff --git a/.github/workflows/project-sync.yml b/.github/workflows/project-sync.yml new file mode 100644 index 00000000..8c75cc20 --- /dev/null +++ b/.github/workflows/project-sync.yml @@ -0,0 +1,13 @@ +name: Project + +on: + schedule: + - cron: "0 0 * * 0" + workflow_dispatch: + +jobs: + sync: + uses: bank-vaults/.github/.github/workflows/_project-sync.yml@main + permissions: + issues: write + pull-requests: write