Skip to content

Commit

Permalink
try with brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter committed Apr 16, 2024
1 parent af4c63c commit d2a97c8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/compile_protos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit d2a97c8

Please sign in to comment.