From 00ca4623971c98f29c3c25b62e4197b51c34b0b2 Mon Sep 17 00:00:00 2001 From: Ramiz Polic Date: Tue, 28 Nov 2023 17:13:14 +0100 Subject: [PATCH] feat(GA): add common mgmt sync actions Signed-off-by: Ramiz Polic --- .github/workflows/checks.yaml | 18 ------------------ .github/workflows/pr-sync.yml | 21 +++++++++++++++++++++ .github/workflows/sync.yml | 18 ++++++++++++++++++ 3 files changed, 39 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/checks.yaml create mode 100644 .github/workflows/pr-sync.yml create mode 100644 .github/workflows/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..31f05936 --- /dev/null +++ b/.github/workflows/pr-sync.yml @@ -0,0 +1,21 @@ +name: PR Sync + +on: + pull_request_target: + types: + - opened + - edited + - reopened + - synchronize + +jobs: + check: + uses: bank-vaults/.github/.github/workflows/_pr_check.yml@main + permissions: + pull-requests: write + + sync: + uses: bank-vaults/.github/.github/workflows/_pr_sync.yml@main + permissions: + pull-requests: write + issues: write diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 00000000..80fc3982 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,18 @@ +name: Sync + +on: + schedule: + - cron: "0 0 * * 0" + workflow_dispatch: + +jobs: + mark-stale: + uses: bank-vaults/.github/.github/workflows/_stale.yml@main + permissions: + issues: write + pull-requests: write + + sync: + uses: bank-vaults/.github/.github/workflows/_sync.yml@main + permissions: + issues: write