File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 1- name : ' Generate resource checks '
1+ name : ' Check auto-generated resources '
22
33# Set of validations run on each pull request and merged commits to master.
44on :
1515 workflow_dispatch :
1616
1717jobs :
18- generate-resource-check :
18+ check-autogen-resources :
1919 runs-on : ubuntu-latest
2020 permissions : {}
2121 steps :
Original file line number Diff line number Diff line change 1+ name : ' Generate auto-generated resources'
2+
3+ # Auto-generates resources and creates a pull request if there are any changes. Runs once per week and can be triggered manually.
4+ on :
5+ schedule :
6+ - cron : " 30 8 * * WED" # Every Wednesday at 8:30 AM
7+ workflow_dispatch :
8+
9+ jobs :
10+ generate-autogen-resources :
11+ runs-on : ubuntu-latest
12+ permissions :
13+ pull-requests : write
14+ steps :
15+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
16+ - uses : actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00
17+ with :
18+ go-version-file : ' go.mod'
19+ - name : Generate resources
20+ run : make tools generate-resource-code
21+ - name : Create PR
22+ uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
23+ with :
24+ token : ${{ secrets.APIX_BOT_PAT }}
25+ title : " chore: Update auto-generated resources"
26+ commit-message : " chore: Update auto-generated resources"
27+ delete-branch : true
28+ branch : auto-generated-resources-update
29+ body : Automatic update of auto-generated resources.
You can’t perform that action at this time.
0 commit comments