-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rejig the actions workflow to actually commit generated content
- Loading branch information
Showing
7 changed files
with
62 additions
and
34 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
paths: | ||
- "docgen/**" | ||
- vineflower-version | ||
|
||
name: "Update Docgen" | ||
|
||
jobs: | ||
get-vineflower-version: | ||
outputs: | ||
version: ${{ steps.version.outputs.version }} | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: "actions/checkout@v3" | ||
- name: "write version to outputs" | ||
id: "version" | ||
run: | | ||
echo "version=$(cat vineflower-version)" >> $GITHUB_OUTPUT | ||
run-docgen: | ||
needs: get-vineflower-version | ||
uses: "./.github/workflows/run-docgen.yaml" | ||
with: | ||
gradle_arguments: "-PvineflowerVersion=${{ needs.get-vineflower-version.outputs.version }} generate --target-dir build/gen-out" | ||
artifact_pattern: "docgen/build/gen-out/" | ||
commit: | ||
needs: run-docgen | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: "actions/checkout@v3" | ||
- name: "extract generated artifact" | ||
uses: "actions/download-artifact@v3" | ||
with: | ||
name: "build-output" | ||
path: source/generated | ||
- name: "commit and update generated content" | ||
run: | | ||
git add -f source/generated | ||
git commit -m 'update generated content' || exit 0 | ||
git push origin | ||
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
Binary file not shown.
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