Prevent CI from running publish-release for non-code changes

This commit is contained in:
peelz
2023-05-27 15:29:15 -04:00
parent a36157e40f
commit 6348ddae63
3 changed files with 20 additions and 10 deletions

View File

@@ -5,13 +5,11 @@ name: On push to master branch
on:
push:
branches: [master]
paths-ignore:
- ".github/**"
- "*.md"
jobs:
harden-ci-security:
uses: ./.github/workflows/harden-ci-security.yml
with:
ref: ${{ github.event.ref }}
run-tests:
uses: ./.github/workflows/run-tests.yml
with:

View File

@@ -5,13 +5,11 @@ name: On push to a secondary branch
on:
push:
branches-ignore: [master]
paths-ignore:
- ".github/**"
- "*.md"
jobs:
harden-ci-security:
uses: ./.github/workflows/harden-ci-security.yml
with:
ref: ${{ github.event.ref }}
run-tests:
uses: ./.github/workflows/run-tests.yml
with:

View File

@@ -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 }}