Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
larry-aptos committed Dec 6, 2024
1 parent 47fcf25 commit 5ffe27c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/update-proto-dependency.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,20 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}
working-directory: aptos-indexer-processors-sdk/
- name: Check if PR Already Exists
id: check_pr
run: |
branch_name="${{ github.event.client_payload.branch_name }}-update-aptos-protos"
existing_pr=$(gh pr list --base main --head "$branch_name" --json number --jq '.[].number')
if [ -n "$existing_pr" ]; then
echo "::set-output name=if_pr_exists::true"
else
echo "::set-output name=if_pr_exists::false"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Pull Request
if: steps.check_pr.outputs.if_pr_exists == 'false'
run: |
branch_name="${{ github.event.client_payload.branch_name }}-update-aptos-protos"
gh pr create --title "Update aptos-protos to upstream branch ${{ github.event.client_payload.branch_name }}" \
Expand Down

0 comments on commit 5ffe27c

Please sign in to comment.