Skip to content

Create Pull Request for Badge Updates #14

Create Pull Request for Badge Updates

Create Pull Request for Badge Updates #14

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:
ref: gh-pages
fetch-depth: 0
- name: Verify git repository state
run: |
git status
git branch
- name: Create Pull Request
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: gh-pages
branch: ${{ format('update-badges-{0}', github.event.workflow_run.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"