Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Mar 10, 2021
1 parent 53e7af2 commit 8c98d69
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ commands:
name: 'Save Merge Commit'
key: git-{{ .Branch }}-{{ .Revision }}
paths:
- .circleci/merge_sha
- .merge_sha
restore_merge_commit:
steps:
- restore_cache:
Expand Down
6 changes: 3 additions & 3 deletions .circleci/fetch_merge_commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ if [[ "$1" == "fetch" ]]; then
echo $(GREEN "Fetching merge SHA from $MERGE_BRANCH...")

MERGE_SHA="$(git ls-remote https://github.com/ampproject/amphtml.git "$MERGE_BRANCH" | awk '{print $1}')"
echo $(GREEN "Fetched merge SHA $(MERGE_SHA)...")
echo "$MERGE_SHA" > .circleci/merge_sha
echo $(GREEN "Fetched merge SHA $MERGE_SHA...")
echo "$MERGE_SHA" > .merge_sha
exit 0
fi

MERGE_SHA="$(cat .circleci/merge_sha)"
MERGE_SHA="$(cat .merge_sha)"
echo $(GREEN "Fetching merge commit $MERGE_SHA...")
(set -x && git pull --ff-only origin "$MERGE_SHA") || err=$?

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
.g4ignore
.merge_sha
build/
.amp-dep-check
c
Expand Down

0 comments on commit 8c98d69

Please sign in to comment.