Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix push with no configured module names #31

Merged
merged 13 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,47 @@ jobs:
push: true
archive: false
comment: false
push-no-modules:
emcfarlane marked this conversation as resolved.
Show resolved Hide resolved
needs: build
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }} # --git-metadata is only available on push
steps:
- uses: actions/checkout@v4
- run: |
mkdir -p proto/foo/v1
printf "version: v2\nmodules:\n - path: proto\n" > buf.yaml
printf "syntax = \"proto3\";\npackage foo.v1;\nmessage Bar {}\n" > proto/foo/v1/bar.proto
- uses: ./
with:
token: ${{ secrets.BUF_TOKEN }}
lint: false
format: false
breaking: false
push: true
archive: false
comment: false
- run: |
rm -rf proto
mkdir -p proto/foo/v1
printf "version: v1\n" > proto/buf.yaml
printf "syntax = \"proto3\";\npackage foo.v1;\nmessage Bar {}\n" > proto/foo/v1/bar.proto
- uses: ./
with:
token: ${{ secrets.BUF_TOKEN }}
lint: false
format: false
breaking: false
push: true
archive: false
comment: false
input: proto
archive:
if: github.event_name == 'push' && github.ref_name != github.event.repository.default_branch
runs-on: ubuntu-latest
needs:
- push
- push-token-only
- push-no-modules
steps:
- uses: actions/checkout@v4
- env:
Expand All @@ -281,6 +316,7 @@ jobs:
needs:
- push
- push-token-only
- push-no-modules
steps:
- uses: actions/checkout@v4
- env:
Expand Down Expand Up @@ -313,3 +349,40 @@ jobs:
label_does_not_exist
label_does_not_exist_either
comment: false
archive-no-modules:
emcfarlane marked this conversation as resolved.
Show resolved Hide resolved
if: github.event_name == 'push'
runs-on: ubuntu-latest
needs:
- push
- push-token-only
- push-no-modules
steps:
- uses: actions/checkout@v4
- run: |
mkdir -p proto/foo/v1
printf "version: v2\nmodules:\n - path: proto\n" > buf.yaml
printf "syntax = \"proto3\";\npackage foo.v1;\nmessage Bar {}\n" > proto/foo/v1/bar.proto
- uses: ./
with:
token: ${{ secrets.BUF_TOKEN }}
lint: false
format: false
breaking: false
push: false
archive: true
comment: false
- run: |
rm -rf proto
mkdir -p proto/foo/v1
printf "version: v1\n" > proto/buf.yaml
printf "syntax = \"proto3\";\npackage foo.v1;\nmessage Bar {}\n" > proto/foo/v1/bar.proto
- uses: ./
with:
token: ${{ secrets.BUF_TOKEN }}
lint: false
format: false
breaking: false
push: false
archive: true
comment: false
input: proto
Loading
Loading