Skip to content

Commit 45100a4

Browse files
authored
fix: update condition to skip first run for check step work jobs (#59)
* fix: update condition to skip first run for check step work jobs * fix: update conditions to skip first run for dependency graph jobs * fix: change permissions to read for contents in dependabot workflow * fix: update permissions to write for contents in dependabot workflow * fix: simplify condition for template check in workflow jobs
1 parent b877754 commit 45100a4

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.github/workflows/1-dependency-graph.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ jobs:
2121
find_exercise:
2222
name: Find Exercise Issue
2323
uses: skills/exercise-toolkit/.github/workflows/find-exercise-issue.yml@v0.3.0
24+
if: |
25+
github.run_number != 1
2426
2527
check_step_work:
2628
name: Check step work
2729
runs-on: ubuntu-latest
2830
needs: find_exercise
29-
if: !github.event.repository.is_template
31+
if: |
32+
!github.event.repository.is_template
3033
env:
3134
ISSUE_URL: ${{ needs.find_exercise.outputs.issue-url }}
3235

.github/workflows/2-dependabot-alerts.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ jobs:
2121
find_exercise:
2222
name: Find Exercise Issue
2323
uses: skills/exercise-toolkit/.github/workflows/find-exercise-issue.yml@v0.3.0
24+
if: |
25+
github.run_number != 1
2426
2527
check_step_work:
2628
name: Check step work
2729
runs-on: ubuntu-latest
2830
needs: find_exercise
29-
if: !github.event.repository.is_template
31+
if: |
32+
!github.event.repository.is_template
3033
env:
3134
ISSUE_URL: ${{ needs.find_exercise.outputs.issue-url }}
3235

.github/workflows/3-dependabot-security.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ jobs:
2121
find_exercise:
2222
name: Find Exercise Issue
2323
uses: skills/exercise-toolkit/.github/workflows/find-exercise-issue.yml@v0.3.0
24+
if: |
25+
github.run_number != 1
2426
2527
check_step_work:
2628
name: Check step work
2729
runs-on: ubuntu-latest
2830
needs: find_exercise
29-
if: !github.event.repository.is_template
31+
if: |
32+
!github.event.repository.is_template
3033
env:
3134
ISSUE_URL: ${{ needs.find_exercise.outputs.issue-url }}
3235

.github/workflows/4-dependabot-versions.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ jobs:
2121
find_exercise:
2222
name: Find Exercise Issue
2323
uses: skills/exercise-toolkit/.github/workflows/find-exercise-issue.yml@v0.3.0
24+
if: |
25+
github.run_number != 1
2426
2527
check_step_work:
2628
name: Check step work
2729
needs: find_exercise
2830
runs-on: ubuntu-latest
29-
if: !github.event.repository.is_template
31+
if: |
32+
!github.event.repository.is_template
3033
env:
3134
ISSUE_URL: ${{ needs.find_exercise.outputs.issue-url }}
3235

@@ -75,7 +78,8 @@ jobs:
7578
name: Post review content
7679
needs: [find_exercise, check_step_work]
7780
runs-on: ubuntu-latest
78-
if: !github.event.repository.is_template
81+
if: |
82+
!github.event.repository.is_template
7983
env:
8084
ISSUE_URL: ${{ needs.find_exercise.outputs.issue-url }}
8185

0 commit comments

Comments
 (0)