Skip to content

Commit

Permalink
push branches once validated
Browse files Browse the repository at this point in the history
  • Loading branch information
vroldanbet committed Mar 25, 2024
1 parent 7a8b818 commit af2a61a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,15 @@ jobs:
env:
BUF_TOKEN: "${{ secrets.BUF_REGISTRY_TOKEN }}"
run: "buf push --draft ${{ github.sha }}"
- name: "Push to BSR a Draft"
if: "github.event_name == 'push' && github.ref == 'refs/heads/main'"
shell: "bash"
env:
BUF_TOKEN: "${{ secrets.BUF_REGISTRY_TOKEN }}"
run: "buf push --draft ${{ github.sha }}"
- name: "Push to BSR a Branch"
if: "github.event_name == 'push' && github.ref != 'refs/heads/main'"
shell: "bash"
env:
BUF_TOKEN: "${{ secrets.BUF_REGISTRY_TOKEN }}"
run: "buf push --branch ${{ github.sha }}"

0 comments on commit af2a61a

Please sign in to comment.