Skip to content

Commit f27da89

Browse files
authored
run library-deployment job conditionally (#55)
1 parent 770514d commit f27da89

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/lint.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,13 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
16-
# - name: Override OpenAPI Version to 3.0.x (generator does not support 3.1)
17-
# run: |
18-
# for file in `find src -type f`; do
19-
# sed -i 's/openapi: "3.1.0"/openapi: "3.0.0"/' $file
20-
# done
2116
- uses: stoplightio/spectral-action@v0.8.10
2217
with:
2318
file_glob: "src/*.yaml"
2419
library-deployment:
2520
needs: [lint]
2621
runs-on: ubuntu-latest
22+
if: github.event_name == 'push'
2723
strategy:
2824
matrix:
2925
repo:

0 commit comments

Comments
 (0)