Skip to content

Commit

Permalink
Oh dear god who came up with this dumb language.
Browse files Browse the repository at this point in the history
  • Loading branch information
DFortun81 committed Nov 7, 2024
1 parent b817418 commit 282fe83
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/Update Submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.CI_TOKEN }}
submodules: true
uses: actions/checkout@v2
with:
token: ${{ secrets.CI_TOKEN }}
submodules: true

- name: Generate Change Log
id: generate_changelog
run: |
# Generate change logs for all submodules
changelog=$(git submodule foreach 'git log --pretty=format:"%an: %s" HEAD..origin/main')
echo "$changelog"
echo "changelog=$changelog" >> $GITHUB_OUTPUT
Expand All @@ -40,4 +39,4 @@ jobs:
git config --global user.name 'Git bot'
git config --global user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "${{ steps.generate_changelog.outputs.changelog }}" && git push || echo "No changes to commit"
git commit -am "${{ steps.generate_changelog.outputs.changelog }}" && git push || echo "No changes to commit"

0 comments on commit 282fe83

Please sign in to comment.