Skip to content

Commit

Permalink
remove branch restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Oct 10, 2023
1 parent 158f383 commit d465668
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions .github/workflows/update-docgen.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
on:
push:
branches:
- "main"
paths:
- "docgen/**"
- vineflower-version
push:
paths:
- "docgen/**"
- vineflower-version

name: "Update Docgen"

jobs:
get-vineflower-version:
outputs:
version: ${{ steps.version.outputs.version }}
version: ${{ steps.version.outputs.version }}
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
Expand All @@ -23,25 +21,25 @@ jobs:
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/"
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
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
- 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

0 comments on commit d465668

Please sign in to comment.