Skip to content

Create Pull Request for Badge Updates #11

Create Pull Request for Badge Updates

Create Pull Request for Badge Updates #11

Workflow file for this run

name: Create Pull Request for Badge Updates
on:
workflow_run:
workflows: ["Check and Update Badges"]
types:
- completed
jobs:
create-pr:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: gh-pages
branch: ${{ github.event.workflow_run.conclusion == 'success' && 'update-badges-' + github.run_id }}

Check failure on line 26 in .github/workflows/create-pr.yml

View workflow run for this annotation

GitHub Actions / Create Pull Request for Badge Updates

Invalid workflow file

The workflow is not valid. .github/workflows/create-pr.yml (Line: 26, Col: 19): Unexpected symbol: '+'. Located at position 71 within expression: github.event.workflow_run.conclusion == 'success' && 'update-badges-' + github.run_id
title: "Update badges.json"
body: |
This pull request updates `badges.json` with the latest release URLs.
Please review and merge if everything looks correct.
labels: "automated update"
assignees: "Garlicrot"