Prevent CI from running publish-release for non-code changes
This commit is contained in:
@@ -5,13 +5,11 @@ name: On push to master branch
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
|
paths-ignore:
|
||||||
|
- ".github/**"
|
||||||
|
- "*.md"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
harden-ci-security:
|
|
||||||
uses: ./.github/workflows/harden-ci-security.yml
|
|
||||||
with:
|
|
||||||
ref: ${{ github.event.ref }}
|
|
||||||
|
|
||||||
run-tests:
|
run-tests:
|
||||||
uses: ./.github/workflows/run-tests.yml
|
uses: ./.github/workflows/run-tests.yml
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -5,13 +5,11 @@ name: On push to a secondary branch
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches-ignore: [master]
|
branches-ignore: [master]
|
||||||
|
paths-ignore:
|
||||||
|
- ".github/**"
|
||||||
|
- "*.md"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
harden-ci-security:
|
|
||||||
uses: ./.github/workflows/harden-ci-security.yml
|
|
||||||
with:
|
|
||||||
ref: ${{ github.event.ref }}
|
|
||||||
|
|
||||||
run-tests:
|
run-tests:
|
||||||
uses: ./.github/workflows/run-tests.yml
|
uses: ./.github/workflows/run-tests.yml
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
||||||
|
|
||||||
|
name: On changes to .github
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths-ignore:
|
||||||
|
- "./.github/**"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
harden-ci-security:
|
||||||
|
uses: ./.github/workflows/harden-ci-security.yml
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.ref }}
|
||||||
Reference in New Issue
Block a user