-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af4c63c
commit d2a97c8
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,45 +39,45 @@ jobs: | |
run: echo "is-auto-commit=true" >> $GITHUB_ENV | ||
# Remove label if exists, since we're about to compile again | ||
# - name: remove label | ||
# if: !env.is-auto-commit | ||
# if: ${{ !env.is-auto-commit }} | ||
# env: | ||
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# run: gh pr edit ${{ github.event.pull_request.number }} --remove-label ${{ env.LABEL_NAME }} | ||
# Build and push | ||
- uses: bufbuild/buf-setup-action@v1 | ||
if: !env.is-auto-commit | ||
if: ${{ !env.is-auto-commit }} | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: arduino/setup-protoc@v1 | ||
if: !env.is-auto-commit | ||
if: ${{ !env.is-auto-commit }} | ||
|
||
- name: Compile protos | ||
if: !env.is-auto-commit | ||
if: ${{ !env.is-auto-commit }} | ||
run: make dist/buf | ||
|
||
- name: Add SHORT_SHA env property | ||
if: !env.is-auto-commit | ||
if: ${{ !env.is-auto-commit }} | ||
id: short_sha | ||
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: commit + push | ||
if: !env.is-auto-commit | ||
if: ${{ !env.is-auto-commit }} | ||
run: | | ||
# todo: do I need `git add .` | ||
git branch | ||
git status | ||
git commit -a -m "${{ env.CI_COMMIT_MESSAGE_PREFIX }} inspect output" | ||
# - name: Commit + Push | ||
# if: !env.is-auto-commit | ||
# if: ${{ !env.is-auto-commit }} | ||
# uses: EndBug/[email protected] | ||
# with: | ||
# default_author: github_actions | ||
# message: ${{ env.CI_COMMIT_MESSAGE_PREFIX }} ${{ steps.short_sha.outputs.short_sha }} | ||
# push: true | ||
|
||
# - name: add back label | ||
# if: !env.is-auto-commit | ||
# if: ${{ !env.is-auto-commit }} | ||
# env: | ||
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# run: gh pr edit ${{ github.event.pull_request.number }} --add-label ${{ env.LABEL_NAME }} |