forked from akinross/terraform-provider-aci
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[minor_change] Added generator function to re-fetch latest metadata a…
…nd generate. - Added a GitHub workflow that runs the code regeneration weekly.
- Loading branch information
Showing
3 changed files
with
66 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Update Metadata | ||
|
||
on: | ||
schedule: | ||
- cron: '0 9 * * MON' # Every Monday at 9AM UTC | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-metadata: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Unshallow | ||
run: git fetch --prune --unshallow | ||
|
||
# Get latest metadata | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
- name: Get latest metadata and generate provider code | ||
run: go generate | ||
env: | ||
RE_GEN_CLASSES: '1' | ||
GEN_ANNOTATION_UNSUPPORTED: '1' | ||
|
||
- name: Check generated code for diffs | ||
run: git diff --exit-code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters