2024-02-22 16:21:30 +00:00
|
|
|
name: Generate Release
|
|
|
|
|
|
|
|
run-name: Release_Generator
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- auto-*
|
2024-03-08 13:05:33 +00:00
|
|
|
- workflow_update
|
2024-02-22 16:21:30 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
validate_and_release:
|
|
|
|
runs-on: ubuntu-latest
|
2024-03-08 13:31:37 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2024-02-22 16:21:30 +00:00
|
|
|
steps:
|
|
|
|
- name: Check out Repo code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Validate YAML
|
|
|
|
uses: https://github.com/GrantBirki/json-yaml-validate@v2.6.1
|
2024-03-08 12:22:56 +00:00
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm i
|
|
|
|
|
|
|
|
- name: Merge to gw.yaml
|
|
|
|
run: node ./scripts/merge-yaml.js
|
2024-03-08 13:31:37 +00:00
|
|
|
|
|
|
|
# - name: Commit changes
|
|
|
|
# run: |
|
|
|
|
# git config --global user.email "owlbot@owlboard.info"
|
|
|
|
# git config --global user.name "OwlBot"
|
|
|
|
# git add gw.yaml
|
|
|
|
# git commit -m "Update gw.yaml with merged & ordered YAML data"
|
2024-02-22 16:21:30 +00:00
|
|
|
|
2024-03-08 13:05:33 +00:00
|
|
|
# - name: Create PR
|
|
|
|
# uses: https://github.com/peter-evans/create-pull-request@v6
|
|
|
|
# with:
|
|
|
|
# token: ${{ secrets.OWLBOT_KEY }}
|
|
|
|
# committer: OwlBot <owlbot@owlboard.info>
|
|
|
|
# signoff: true
|
|
|
|
# title: Merge Changes
|
|
|
|
# reviewers: fred.boniface
|
2024-03-08 13:31:37 +00:00
|
|
|
# branch: main
|
|
|
|
|
|
|
|
- name: Commit Changes
|
|
|
|
uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
|