mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 07:35:56 +02:00
Update onpr_automerge.yaml
This commit is contained in:
19
.github/workflows/onpr_automerge.yaml
vendored
19
.github/workflows/onpr_automerge.yaml
vendored
@@ -21,9 +21,24 @@ on:
|
|||||||
- completed
|
- completed
|
||||||
status: {}
|
status: {}
|
||||||
jobs:
|
jobs:
|
||||||
automerge:
|
labeler:
|
||||||
if: ${{ (github.event.issue.pull_request) && (contains(github.event.comment.body, '/automerge')) }} # <--- The other way to compare if it's on a PR or on an issue
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Add the automerge label
|
||||||
|
if: ${{ (github.event.issue.pull_request) && (contains(github.event.comment.body, '/automerge')) }} # <--- The other way to compare if it's on a PR or on an issue
|
||||||
|
uses: actions/github-script@v4
|
||||||
|
with:
|
||||||
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
script: |
|
||||||
|
github.issues.addLabels({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
labels: ['automerge']
|
||||||
|
})
|
||||||
|
automerge:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
- id: automerge
|
- id: automerge
|
||||||
name: automerge
|
name: automerge
|
||||||
uses: "pascalgn/automerge-action@v0.16.2"
|
uses: "pascalgn/automerge-action@v0.16.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user