Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bonicim committed Jun 8, 2024
1 parent 64fe479 commit ae64247
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
triggeredBy:
description: 'Name of team member who is manually triggering this workflow'
required: true
default: ''

defaults:
run:
Expand All @@ -28,10 +29,11 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- run: |
echo "This workflow was triggered by: $TRIGGER_PERSON"
- if: ${{ inputs.triggeredBy != '' }}
run: |
echo "This workflow was triggered by: $TEAM_MEMBER"
env:
TRIGGER_PERSON: ${{ github.event.inputs.triggeredBy }}
TEAM_MEMBER: ${{ inputs.triggeredBy }}
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/publish-to-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
triggeredBy:
description: 'Name of team member who is manually triggering this workflow'
required: true
default: ''

jobs:

Expand All @@ -31,11 +32,11 @@ jobs:
attestations: write
id-token: write
steps:
- run: |
echo "This workflow was triggered by: $TRIGGER_PERSON"
- if: ${{ inputs.triggeredBy != '' }}
run: |
echo "This workflow was triggered by: $TEAM_MEMBER"
env:
TRIGGER_PERSON: ${{ github.event.inputs.triggeredBy }}
TEAM_MEMBER: ${{ inputs.triggeredBy }}
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
triggeredBy:
description: 'Name of team member who is manually triggering this workflow'
required: true
default: ''

permissions:
contents: read
Expand All @@ -27,10 +28,11 @@ jobs:
publish-to-pypi:
runs-on: ubuntu-latest
steps:
- run: |
echo "This workflow was triggered by: $TRIGGER_PERSON"
- if: ${{ inputs.triggeredBy != '' }}
run: |
echo "This workflow was triggered by: $TEAM_MEMBER"
env:
TRIGGER_PERSON: ${{ github.event.inputs.triggeredBy }}
TEAM_MEMBER: ${{ inputs.triggeredBy }}
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
Expand Down

0 comments on commit ae64247

Please sign in to comment.