Skip to content

Commit 49b15be

Browse files
committed
fix: add GITHUB_TOKEN as input secret
1 parent 1da0006 commit 49b15be

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/docker-release.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ on:
2424
required: true
2525
SLACK_WEBHOOK_URL:
2626
required: true
27+
GITHUB_TOKEN:
28+
required: false
2729

2830
jobs:
2931

@@ -32,7 +34,17 @@ jobs:
3234
steps:
3335
- uses: danubetech/[email protected]
3436

37+
set-framework:
38+
runs-on: ubuntu-latest
39+
outputs:
40+
framework: ${{ steps.set_framework.outputs.framework }}
41+
steps:
42+
- name: Set framework to output variable
43+
id: set_framework
44+
run: echo "::set-output name=framework::${{ inputs.GLOBAL_FRAMEWORK }}"
45+
3546
node-preparation:
47+
needs: set-framework
3648
if: ${{ needs.set-framework.outputs.framework }} == 'node'
3749
runs-on: ubuntu-latest
3850
steps:
@@ -88,15 +100,6 @@ jobs:
88100
env:
89101
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
90102

91-
set-framework:
92-
runs-on: ubuntu-latest
93-
outputs:
94-
framework: ${{ steps.set_framework.outputs.framework }}
95-
steps:
96-
- name: Set framework to output variable
97-
id: set_framework
98-
run: echo "::set-output name=framework::${{ inputs.GLOBAL_FRAMEWORK }}"
99-
100103
validate-pom:
101104
needs: [create-tag, set-version, set-framework]
102105
if: ${{ needs.set-framework.outputs.framework }} == 'maven'

0 commit comments

Comments
 (0)