Skip to content

Commit

Permalink
fix: add GITHUB_TOKEN as input secret
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardFuchs committed Nov 8, 2024
1 parent 1da0006 commit 49b15be
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ on:
required: true
SLACK_WEBHOOK_URL:
required: true
GITHUB_TOKEN:
required: false

jobs:

Expand All @@ -32,7 +34,17 @@ jobs:
steps:
- uses: danubetech/github-action-log-build-context@v0.1.0

set-framework:
runs-on: ubuntu-latest
outputs:
framework: ${{ steps.set_framework.outputs.framework }}
steps:
- name: Set framework to output variable
id: set_framework
run: echo "::set-output name=framework::${{ inputs.GLOBAL_FRAMEWORK }}"

node-preparation:
needs: set-framework
if: ${{ needs.set-framework.outputs.framework }} == 'node'
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -88,15 +100,6 @@ jobs:
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

set-framework:
runs-on: ubuntu-latest
outputs:
framework: ${{ steps.set_framework.outputs.framework }}
steps:
- name: Set framework to output variable
id: set_framework
run: echo "::set-output name=framework::${{ inputs.GLOBAL_FRAMEWORK }}"

validate-pom:
needs: [create-tag, set-version, set-framework]
if: ${{ needs.set-framework.outputs.framework }} == 'maven'
Expand Down

0 comments on commit 49b15be

Please sign in to comment.