Skip to content

Commit aac43cf

Browse files
committed
ci: Simplify validate workflow to only run on PR, not branch
1 parent 81e2ff6 commit aac43cf

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,13 @@ on:
88

99
jobs:
1010
validate:
11-
name: 🤖 Validate
11+
name: ↪️ Validate
1212
uses: ./.github/workflows/validate.yml
1313
publish:
1414
name: 📦 Publish
1515
needs: validate
1616
runs-on: ubuntu-latest
1717
permissions:
18-
# To commit on the repo and add the tag
19-
contents: write
20-
# To publish the Docker image to GitHub Packages
2118
packages: write
2219
env:
2320
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/validate.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,7 @@ name: VALIDATE
22
run-name: 🤖 Validating code on ${{ github.ref_name }}
33

44
on:
5-
push:
6-
branches:
7-
- '**'
8-
- '!master'
95
pull_request:
10-
types:
11-
- edited
12-
- reopened
13-
- synchronize
14-
# on.workflow_call is required for this workflow to be re-used
15-
# See: https://docs.github.com/en/actions/using-workflows/reusing-workflows#creating-a-reusable-workflow
166
workflow_call:
177

188
jobs:

0 commit comments

Comments
 (0)