-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 1013 Bytes
/
merge-checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This file was added by Pulumi and should not be edited manually. To edit the contents of this file, please go
# to the github-management project in moneymeets-pulumi and call `pulumi up` after changing the template file.
name: Merge checks
on:
push:
branches:
- feature/**
pull_request_target:
jobs:
merge-checks:
runs-on: ubuntu-22.04
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
permissions:
contents: read
statuses: write
steps:
- uses: actions/github-script@v6
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: moneymeets/action-merge-checks@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
head_sha: ${{ steps.get-head-hash.outputs.value }}