Skip to content

Commit

Permalink
maint: merge checks workflow (managed by Pulumi)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyv committed Feb 27, 2025
1 parent be45fff commit 17b3bdd
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/merge-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This file was added by Pulumi and should not be edited manually.

name: Merge checks

on:
push:
branches:
- "**"
pull_request_target:

jobs:
merge-checks:
runs-on: ubuntu-latest
timeout-minutes: 5

if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

permissions:
contents: read
statuses: write

steps:
- uses: actions/checkout@v4

- uses: actions/github-script@v7
id: get-head-hash
with:
result-encoding: string
script: |
core.setOutput("value", context.eventName == "pull_request_target" ? context.payload.pull_request.head.sha : context.sha);
- name: Merge checks
uses: midnightcommander/action-merge-checks@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
head_sha: ${{ steps.get-head-hash.outputs.value }}

0 comments on commit 17b3bdd

Please sign in to comment.