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 4e15c8b commit 0240295
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/update-proto-dependency.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,17 @@ jobs:
echo "https://larry-aptos:${{ secrets.CI_TOKEN}}@github.com" > ~/.git-credentials
toml set Cargo.toml workspace.dependencies.aptos-protos.rev ${{ github.event.client_payload.commit_hash }} > Cargo.tmp && mv Cargo.tmp Cargo.toml
working-directory: aptos-indexer-processors-sdk/
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit and Push Changes
run: |
git add Cargo.toml
git commit -m "Update aptos-protos to ${{ github.event.client_payload.commit_hash }}"
gh auth login --with-token ${{ secrets.CI_TOKEN }}
git push origin ${{ github.event.client_payload.branch_name }}-update-dependency
gh pr create --title "Update aptos-protos to ${{ github.event.client_payload.commit_hash }}" --body "Update aptos-protos to ${{ github.event.client_payload.commit_hash }}" --base main --head ${{ github.event.inputs.branch_name }}-update-dependency
git commit -m "Automated commit message"
git push --force
env:
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}
working-directory: aptos-indexer-processors-sdk/

0 comments on commit 0240295

Please sign in to comment.