Files
gw-apis-codes/.gitea/workflows/auto_pr.yaml
Fred Boniface bed55db05f Fix action name
2025-12-04 21:18:27 +00:00

51 lines
1.7 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: sort-merge-${{ github.run_id }}
base: main
title: 'Automated PIS Update: Robotic Owl'
delete-branch: true
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.