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