Skip to content

Commit f70929c

Browse files
committed
Only run checks for tag events
1 parent 108d8b8 commit f70929c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/internal-ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727
with:
2828
fetch-depth: 0 # get full history, not shallow clone
2929

30+
- name: Check for workflows with outdated action pins
31+
if: startsWith(github.ref, 'refs/tags')
32+
run: |
33+
! grep -P -i 'uses: KSPModdingLibs/KSPBuildTools/\.github/actions/.*@(?!${{ github.ref_name }}$)' .github/workflows/*.yml
34+
3035
- name: Setup .NET
3136
uses: actions/setup-dotnet@v4
3237
with:
@@ -39,10 +44,6 @@ jobs:
3944
minver
4045
echo "version=$(minver -v e)" >> "$GITHUB_OUTPUT"
4146
42-
- name: Check Workflow Pinning
43-
run: |
44-
! grep -P -i 'uses: KSPModdingLibs/KSPBuildTools/\.github/actions/.*@(?!${{github.ref_name}}$)' .github/workflows/*.yml
45-
4647
- name: Build
4748
run: dotnet build KSPBuildTools.csproj
4849

0 commit comments

Comments
 (0)