-
Notifications
You must be signed in to change notification settings - Fork 44.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Nicholas Tindle <[email protected]>
- Loading branch information
1 parent
c04f221
commit 517c080
Showing
2 changed files
with
6 additions
and
4 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 |
---|---|---|
|
@@ -95,11 +95,13 @@ jobs: | |
|
||
- name: Stage new files and commit | ||
run: | | ||
COMMIT_SHA=$(git rev-parse HEAD) # take the sha before committing the cassette | ||
git add tests | ||
git diff --cached --quiet && echo "No changes to commit" && exit 0 | ||
git config user.email "[email protected]" | ||
git config user.name "GitHub Actions" | ||
git commit -m "Add new cassettes" | ||
git checkout -b cassette-diff-${{ github.event.pull_request.number }} | ||
git checkout -b cassette-diff-${COMMIT_SHA} | ||
git remote add target https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.event.pull_request.base.repo.full_name }} | ||
git push -f target cassette-diff-${{ github.event.pull_request.number }} | ||
git push -f target cassette-diff-${COMMIT_SHA} |
517c080
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deployment failed with the following error: