All checks were successful
Generate Release / validate_and_release (push) Successful in 6s
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_release:
|
|
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_TOKEN }}
|
|
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. |