Skip to content

Commit

Permalink
Add BRANCH_REF
Browse files Browse the repository at this point in the history
  • Loading branch information
willhickey committed Mar 8, 2024
1 parent a642fe4 commit 5c6db03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cherry-pick-from-branch.sh
Expand Up @@ -43,4 +43,4 @@ for sha1 in $(git log --reverse --format=format:%H $BEFORE_SHA..$LAST_SHA); do
echo "Commit message contains $SKIP_COMMIT_STRING. Skipping..."
fi
done
# git push "$DEST_REMOTE" "$DEST_BRANCH"
git push "$DEST_REMOTE" "$DEST_BRANCH"
4 changes: 2 additions & 2 deletions .github/workflows/update_upstream_from_fork.yml
Expand Up @@ -10,7 +10,7 @@ on:
env:
GH_TOKEN: ${{ secrets.SYNC_TEST_ADMIN }}
GH_REPO: ${{ github.repository }}
BASE_REF: ${{ github.event.base_ref}} # TODO this isn't populated
BRANCH_REF: ${{ github.ref_name }}
REF: ${{ github.event.REF}}
BEFORE_SHA: ${{ github.event.before }}
LAST_SHA: ${{ github.event.after}}
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
shell: bash
- name: Cherry pick from origin to upstream
run: |
.github/workflows/cherry-pick-from-branch.sh upstream master "$BEFORE_SHA" "$LAST_SHA"
.github/workflows/cherry-pick-from-branch.sh upstream "$BRANCH_REF" "$BEFORE_SHA" "$LAST_SHA"
shell: bash
# TODO master is hardcoded in script call above.
# TODO Minimize the PAT permissions

0 comments on commit 5c6db03

Please sign in to comment.