🐛 [EPic Games Free] Add-on won't start after latest update #367
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yamllint disable rule:line-length | |
# shellcheck disable=SC2043 | |
--- | |
name: automerge | |
on: | |
pull_request_review: | |
types: | |
- submitted | |
issue_comment: | |
types: created | |
check_suite: | |
types: | |
- completed | |
status: {} | |
jobs: | |
labeler: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Add the automerge label | |
if: 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@v7 | |
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 | |
needs: [labeler] | |
steps: | |
- id: automerge | |
if: ${{ github.event.issue.pull_request }} | |
name: automerge | |
uses: "pascalgn/[email protected]" | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |