51 lines
1.7 KiB
YAML
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/maxking/forgejo-create-pr@main
|
|
with:
|
|
token: ${{ secrets.OWLBOT_KEY }}
|
|
base: main
|
|
commit-message: "Robotic Owl automated changes"
|
|
commit-user: Robotic Owl
|
|
commit-email: owlbot@owlboard.info
|
|
pr-title: 'Automated PIS Update: Robotic Owl'
|
|
pr-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. |