Skip to content

Commit

Permalink
try rev-parse
Browse files Browse the repository at this point in the history
  • Loading branch information
darioush committed Aug 21, 2024
1 parent d147327 commit b0e7f41
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/sync-subnet-evm-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
run: |
git remote add subnet-evm https://github.com/ava-labs/subnet-evm
# TODO: Can use default when we remove the push trigger hack
# TODO: Replace test branch with actual (eg, coreth)
- name: Fetch Remote Branch (${{ github.event.inputs.remoteBranch }})
id: fetch_remote_branch
run: |
git fetch subnet-evm ${{ github.event.inputs.remoteBranch }}
git fetch subnet-evm coreth-diff-script
git branch -a # Verify the new branch was fetched
git rev-parse --short=8 subnet-evm/coreth-test-0 >> $GITHUB_OUTPUT
# TODO: Remove this step when the script is checked in
- name: Checkout script
Expand All @@ -45,13 +45,12 @@ jobs:
run: |
git checkout -- .github/workflows
# TODO: Add subnet-evm commit hash
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: "Automated commit message"
branch: auto-sync-subnet-evm
title: "Sync Subnet EVM"
commit-message: "Sync subnet-evm to ${{ steps.fetch_remote_branch.outputs.result }}"
branch: sync-subnet-evm-${{ steps.fetch_remote_branch.outputs.result }}
title: "Sync Subnet EVM to ${{ steps.fetch_remote_branch.outputs.result }}"
body: |
This PR was created automatically by a GitHub Action.
draft: true

0 comments on commit b0e7f41

Please sign in to comment.