Skip to content

Commit a9bea3b

Browse files
committed
fix(gh-action): Fixed reusable workflow usage
Changed the structure of the workflows to fix the error "reusable workflows should be referenced at the top-level `jobs.*.uses' key, not within steps"
1 parent 60a7729 commit a9bea3b

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

.github/workflows/on-all-pr-workflows.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@ on:
66

77
jobs:
88
call-changelog-workflow:
9-
runs-on: ubuntu-latest
10-
11-
steps:
12-
- name: Call PR Changelog Preview workflow from App Summoner Sync
13-
uses: ${{ github.repository_owner }}/app-summoner-sync/.github/workflows/pr-changelog-preview.yml@feature/new-github-actions
9+
uses: ${{ github.repository_owner }}/app-summoner-sync/.github/workflows/pr-changelog-preview.yml@feature/new-github-actions

.github/workflows/on-main-pr-workflows.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,4 @@ on:
77

88
jobs:
99
call-java-code-quality-workflow:
10-
runs-on: ubuntu-latest
11-
12-
steps:
13-
- name: Call Detect Main Language and Trigger Java Maven Code Quality Workflow
14-
uses: ${{ github.repository_owner }}/app-summoner-sync/.github/workflows/trigger-java-code-quality.yml@feature/new-github-actions
10+
uses: ${{ github.repository_owner }}/app-summoner-sync/.github/workflows/trigger-java-code-quality.yml@feature/new-github-actions

.github/workflows/on-release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,4 @@ on:
77

88
jobs:
99
call-release-workflow:
10-
runs-on: ubuntu-latest
11-
12-
steps:
13-
- name: Call Release workflow from App Summoner Sync
14-
uses: ${{ github.repository_owner }}/app-summoner-sync/.github/workflows/release-workflow.yml@feature/new-github-actions
10+
uses: ${{ github.repository_owner }}/app-summoner-sync/.github/workflows/release-workflow.yml@feature/new-github-actions

0 commit comments

Comments
 (0)