This repository has been archived by the owner on May 28, 2024. It is now read-only.
new admin play helpers & fullstack/README update #360
Workflow file for this run
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
name: "pr-target" | |
on: | |
pull_request_target: | |
jobs: | |
# label with "dev" to enable PR filtering | |
label: | |
permissions: | |
contents: read | |
pull-requests: write | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }} | |
steps: | |
- id: label-the-PR | |
uses: actions/labeler@v5 | |
# automerge successful dependabot PRs | |
dependabot: | |
permissions: | |
pull-requests: write | |
contents: write | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} | |
steps: | |
- name: Dependabot metadata | |
id: dependabot-metadata | |
uses: dependabot/fetch-metadata@v2 | |
- name: Enable auto-merge for Dependabot PRs | |
if: ${{steps.dependabot-metadata.outputs.target-branch == 'dev'}} | |
run: gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |