-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a check whether there are actual changes to commit
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 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 |
---|---|---|
|
@@ -114,16 +114,26 @@ jobs: | |
if: ${{ github.event.inputs.update == 'true' || inputs.update == true }} | ||
working-directory: app/data | ||
run: | | ||
# Check for any differences between the working directory and the latest commit | ||
if git diff --quiet; then | ||
echo "No changes to commit" | ||
exit 0 | ||
fi | ||
# Configure git | ||
git config user.email "[email protected]" | ||
git config user.name "FAForever" | ||
# Add and commit the changes | ||
git stage . | ||
git commit -m 'Update generated data to game version ${{ fromJson(steps.gameVersionJSON.outputs.json).version }} | ||
Commit hash of FA repository: ${{ steps.hashFA.outputs.hash }} | ||
Commit hash of Nomads repository: ${{ steps.hashNomads.outputs.hash }}' | ||
git log | ||
# git push origin HEAD:master | ||
|
||
# git tag "${{ fromJson(steps.gameVersionJSON.outputs.json).version}}" | ||
|