Skip to content

Commit

Permalink
update workflow to update submodules correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdvgt committed Dec 23, 2023
1 parent 6ea32e9 commit 6817c37
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/update-compiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ jobs:

- name: Update submodule
run: |
git -C effekt/ checkout master
git -C effekt/ pull
if [ -n "$effekt_commit" ]; then
git -C effekt/ checkout ${{ github.event.inputs.effekt_commit }}
fi
git submodule update --recursive --remote --init
- name: Checkout given commit
if: "${{ github.event.inputs.effekt_commit != '' }}"
run: |
git -C effekt/ checkout ${{ github.event.inputs.effekt_commit }}
- name: Build Effekt JS
run: |
cd effekt/
Expand All @@ -51,7 +52,7 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git add src/ dist/ effekt/
git commit -m "update compiler"
git commit -m "Github Action: update compiler"
- name: Push changes
# here we have to make sure that trigger event is on 'manual'
Expand Down

0 comments on commit 6817c37

Please sign in to comment.