Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Test labeling.

Test labeling. #339

Workflow file for this run

name: "pr-target"

Check failure on line 1 in .github/workflows/pr-target.yml

View workflow run for this annotation

GitHub Actions / pr-target

Invalid workflow file

The workflow is not valid. .github/workflows/pr-target.yml: (Line: 16, Col: 13, Idx: 306) - (Line: 16, Col: 14, Idx: 307): While parsing a tag, did not find expected tag URI.
on:
pull_request_target:
push:
jobs:
# label with "dev" to enable PR filtering
label:
runs-on: ubuntu-latest
steps:
- name: Get PR labels
id: pr-labels
uses: joerick/pr-labels-action@v1.0.9
- name: add label
id: add-labels
if: ! contains(steps.pr-labels.outputs.labels, 'dependabot')
uses: actions-ecosystem/action-add-labels@v1
with:
labels: dev
# 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@v1
- 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}}