-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from rayluo/release-1.3
GPO 1.3
- Loading branch information
Showing
2 changed files
with
17 additions
and
13 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
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 |
---|---|---|
|
@@ -27,16 +27,20 @@ runs: | |
git branch -f ${{ inputs.target-branch }} HEAD | ||
git checkout ${{ inputs.target-branch }} | ||
# The commit and push happen to work without authentication | ||
# https://docs.github.com/en/actions/reference/authentication-in-a-workflow | ||
git config user.name "Github Pages Overwriter" | ||
git config user.email "[email protected]" | ||
# The previous commit message may contain reference to github issues, | ||
# we wipe it out, so that it won't show up in the inevitable duplicate commit. | ||
git commit --amend -m "This commit will be automatically published" | ||
# Generate such a new file to make sure the subsequent commit would succeed | ||
# Such a file WITHOUT leading dot (.) is also visible in outcome website. | ||
# FYI: filename with leading dot (.) or underscore (_) would be ignored by Jekyll, | ||
# which Github Pages depends on. So we use a normal filename here. | ||
date > ${{ inputs.source-directory}}/publish_date.txt | ||
# The commit and push happen to work without authentication | ||
# https://docs.github.com/en/actions/reference/authentication-in-a-workflow | ||
git config user.name "Github Pages Overwriter" | ||
git config user.email "[email protected]" | ||
git add -A | ||
git commit -m "Automated publish" | ||
|