Files
gw-apis-codes/.gitea/workflows/auto_pr.yaml
Fred Boniface f07c5bce0c
All checks were successful
Generate Release / validate_and_PR (push) Successful in 9s
Update action to better handle PR creation
2025-12-04 21:19:43 +00:00

50 lines
1.6 KiB
YAML

name: Generate Release
run-name: Release_Generator
on:
push:
branches:
- auto-*
- workflow_update
- pis-*
jobs:
validate_and_PR:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out Repo code
uses: actions/checkout@v3
- name: Validate YAML
uses: https://github.com/GrantBirki/json-yaml-validate@v2.6.1
- name: Install Dependencies
run: npm i
- name: Merge to gw.yaml
run: node ./scripts/merge-yaml.js
- name: Commit Changes
id: commit
uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Sort & Merge PIS Files
commit_user_name: owlbot
commit_user_email: owlbot@owlboard.info
commit_author: Robotic Owl <owlbot@owlboard.info>
- name: Create Pull Request
if: steps.commit.outputs.changes_detected == 'true'
uses: https://github.com/peter-evans/create-pull-request@v6
with:
base_url: https://git.fjla.uk
token: ${{ secrets.OWLBOT_KEY }}
commit-branch: ${{ github.ref_name }}
base: main
title: 'Automated PIS Update: Robotic Owl'
body: |
This pull request was automatically generated by the Robotic Owl.
It contains a consolidated and sorted PIS data file for review. Please inspect before merging.