Skip to content

Commit

Permalink
Fix examples syntax (#69)
Browse files Browse the repository at this point in the history
Fixes #66
  • Loading branch information
emcfarlane authored Aug 29, 2024
1 parent 5210588 commit 42c3957
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
4 changes: 2 additions & 2 deletions examples/only-setup-defaults/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
buf breaking --error-format github-actions --against \
${{ github.event.repository.clone_url }}#format=git,tag=${{ github.event.pull_request.base.sha || github.event.before }}
- if: github.event_name == 'push' &&
- if: ${{ github.event_name == 'push' }}
run: buf push --error-format github-actions --create --git-metadata
- if: github.event_name == 'delete'
- if: ${{ github.event_name == 'delete' }}
run: buf beta registry archive --label ${{ github.ref_name }}
12 changes: 3 additions & 9 deletions examples/skip-on-commits/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ jobs:
- uses: bufbuild/buf-action@v1
with:
token: ${{ secrets.BUF_TOKEN }}
lint: |
github.event_name == 'push' && \
!contains(github.event.head_commit.message, 'buf skip lint')
format: |
github.event_name == 'push' && \
!contains(github.event.head_commit.message, 'buf skip format')
breaking: |
github.event_name == 'push' && \
!contains(github.event.head_commit.message, 'buf skip breaking')
lint: ${{ github.event_name == 'push' && !contains(github.event.head_commit.message, 'buf skip lint') }}
format: ${{ github.event_name == 'push' && !contains(github.event.head_commit.message, 'buf skip format') }}
breaking: ${{ github.event_name == 'push' && !contains(github.event.head_commit.message, 'buf skip breaking') }}
12 changes: 3 additions & 9 deletions examples/skip-on-labels/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ jobs:
- uses: bufbuild/buf-action@v1
with:
token: ${{ secrets.BUF_TOKEN }}
lint: |
github.event_name == 'pull_request' && \
!contains(github.event.pull_request.labels.*.name, 'buf skip lint')
format: |
github.event_name == 'pull_request' && \
!contains(github.event.pull_request.labels.*.name, 'buf skip format')
breaking: |
github.event_name == 'pull_request' && \
!contains(github.event.pull_request.labels.*.name, 'buf skip breaking')
lint: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'buf skip lint') }}
format: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'buf skip format') }}
breaking: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'buf skip breaking') }}

0 comments on commit 42c3957

Please sign in to comment.