-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (42 loc) · 1.44 KB
/
regenerate-models.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Regenerate from usnistgov/OSCAL
on:
schedule:
- cron: "0 0 * * *"
push:
branches: [ master ]
jobs:
report:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20
- name: Install dependencies
uses: mstksg/get-package@master
with:
apt-get: libxml2-utils
- uses: actions/checkout@v4
- name: Regenerate models
run: |
export PATH=~/go/bin:$PATH
make generate
- name: Clean-up
run: |
make clean
git checkout -- go.mod
git checkout -- go.sum
- name: Create Pull Request
uses: peter-evans/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_MESSAGE: 'Rebuilding oscalkit models to match latest development at upstream OSCAL'
COMMIT_AUTHOR_EMAIL: [email protected]
COMMIT_AUTHOR_NAME: Github Actions Automations
PULL_REQUEST_TITLE: 'Rebuilding oscalkit models to match latest development at upstream OSCAL'
PULL_REQUEST_BODY: |
Automated rebuild of oscalkit models to match latest changes at https://github.com/usnistgov/OSCAL
PULL_REQUEST_BRANCH: make-generate
BRANCH_SUFFIX: short-commit-hash
- name: Check output environment variable
run: echo "Pull Request Number - $PULL_REQUEST_NUMBER"