-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: checkout branch for pushdiff action
Signed-off-by: Paul Meyer <[email protected]>
- Loading branch information
1 parent
704b6aa
commit 7a59624
Showing
2 changed files
with
7 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 |
---|---|---|
|
@@ -42,6 +42,10 @@ runs: | |
(!github.event.pull_request.head.repo.fork) | ||
shell: bash | ||
run: | | ||
if ! git status | grep -q "On branch"; then | ||
echo "::error::pushdiff must run on a branch. Pass 'github.head_ref' as 'ref' to the checkout action." | ||
exit 1 | ||
fi | ||
git config --global user.name "edgelessci" | ||
git config --global user.email "[email protected]" | ||
git commit -am "${{ inputs.renovate-commit-msg }}" | ||
|
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