Skip to content

Commit

Permalink
checkout before setup-x for cache, -u origin
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter committed Apr 16, 2024
1 parent 759cce3 commit b6656e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/compile_protos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
CI_COMMIT_AUTHOR: github-actions
LABEL_NAME: protos-compiled
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 2
- uses: actions/setup-node@v4
- uses: actions/setup-go@v5
with:
Expand All @@ -36,10 +40,6 @@ jobs:
chmod +x protoc-gen-grpc-web
sudo mv protoc-gen-grpc-web /usr/local/bin
which protoc-gen-grpc-web
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 2
# Set environment variables based on the last commit
- name: Set environment variable "commit-message"
run: |
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
git config user.email [email protected]
git config user.name github-actions
git commit -a -m "${{ env.CI_COMMIT_MESSAGE_PREFIX }} $(git rev-parse --short HEAD)"
git push
git push -u origin ${{ github.event.pull_request.head.ref }}
# - name: Commit + Push
# if: ${{ !env.is-auto-commit }}
Expand Down

0 comments on commit b6656e8

Please sign in to comment.