Skip to content

Commit 3845b15

Browse files
authored
Update coq-timing-diff.yml
1 parent b8e499e commit 3845b15

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: .github/workflows/coq-timing-diff.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ jobs:
3838
- name: compute base sha and current branch
3939
id: git_ids
4040
run: |
41+
git remote add upstream https://github.com/mit-plv/fiat-crypto.git
42+
git remote update
4143
# Get the current branch name
4244
CURRENT_BRANCH=${GITHUB_REF#refs/heads/}
45+
echo "Current branch: $CURRENT_BRANCH"
4346
4447
# Check if this is a PR
4548
# Check if this branch has an associated PR
46-
PR_NUMBER=$(gh pr list --head $CURRENT_BRANCH --json number --jq '.[0].number')
49+
PR_NUMBER=$(gh pr list --repo mit-plv/fiat-crypto --head $CURRENT_BRANCH --json number --jq '.[0].number')
4750
if [[ -n "$PR_NUMBER" ]]; then
4851
# Get the base branch from the PR
4952
BASE_BRANCH=$(gh pr view $PR_NUMBER --json baseRefName --jq '.baseRefName')
@@ -57,7 +60,6 @@ jobs:
5760
fi
5861
5962
echo "Using base SHA: $BASE_SHA"
60-
echo "Current branch: $CURRENT_BRANCH"
6163
git log --oneline $BASE_SHA..$CURRENT_BRANCH
6264
6365
echo "base_sha=${BASE_SHA}" >> $GITHUB_OUTPUT
@@ -94,6 +96,7 @@ jobs:
9496
CURRENT_BRANCH=${{ steps.git_ids.outputs.current_branch }}
9597
9698
# Run the timing diff script
99+
eval $(opam env)
97100
etc/coq-scripts/timing/make-pretty-timed-diff-branch.sh "$BASE_SHA" "$CURRENT_BRANCH"
98101
99102
- name: Display commits between base and current

0 commit comments

Comments
 (0)