-
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.
Oh dear god who came up with this dumb language.
- Loading branch information
Showing
1 changed file
with
5 additions
and
6 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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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" |