Skip to content

Commit

Permalink
Fix github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bonicim committed Jun 8, 2024
1 parent 949bd71 commit 67867eb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 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: ${{ 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
12 changes: 6 additions & 6 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,12 +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: ${{ inputs.triggeredBy }}
IMAGE_NAME: hypernetx/hypernetx:latest
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 All @@ -57,7 +57,7 @@ jobs:
id: push
uses: docker/build-push-action@v5
with:
tags: ${{ env.IMAGE_NAME }}
tags: hypernetx/hypernetx:latest
push: true

- name: Generate artifact attestation
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: ${{ 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 67867eb

Please sign in to comment.