Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
workflow fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Varun Sundar Rabindranath committed Mar 6, 2024
1 parent c2d7295 commit 4fb5e1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
# The scheduled job can't take inputs, but the workflow_dispatch jobs can. Resolve that
# discrepancy and store all the input arguments as environment variables.
env:
push_results_to_gh_pages: "${{ github.event_name == 'schedule' || inputs.push_results_to_gh_pages }}"
PUSH_RESULTS_TO_GH_PAGES: "${{ github.event_name == 'schedule' || inputs.push_results_to_gh_pages }}"

jobs:

Expand All @@ -32,7 +32,7 @@ jobs:
gitref: '${{ github.ref }}'
Gi_per_thread: 4
python: "3.10.12"
push_results_to_gh_pages: '${{ env.push_results_to_gh_pages }}'
push_results_to_gh_pages: $PUSH_RESULTS_TO_GH_PAGES
secrets: inherit

# single gpu
Expand All @@ -45,5 +45,5 @@ jobs:
gitref: '${{ github.ref }}'
Gi_per_thread: 12
python: "3.10.12"
push_results_to_gh_pages: '${{ env.push_results_to_gh_pages }}'
push_results_to_gh_pages: $PUSH_RESULTS_TO_GH_PAGES
secrets: inherit
15 changes: 6 additions & 9 deletions .github/workflows/nm-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,9 @@ on:
type: string
required: true
push_results_to_gh_pages:
description: "When set to true, the workflow pushes all benchmarking results to gh-pages UI "
description: "When set to true, the workflow pushes all benchmarking results to gh-pages UI"
type: string
required: true
type: choice
options:
- 'true'
- 'false'

# makes workflow manually callable
workflow_dispatch:
Expand Down Expand Up @@ -63,7 +60,7 @@ on:
type: string
required: true
push_results_to_gh_pages:
description: "When set to true, the workflow pushes all benchmarking results to gh-pages UI "
description: "When set to true, the workflow pushes all benchmarking results to gh-pages UI"
type: choice
options:
- 'true'
Expand All @@ -82,15 +79,15 @@ jobs:
run: |
echo "event name is:" ${{ github.event_name }}
echo "event type is:" ${{ github.event.action }}
echo "push result to gh pages : " ${{ input.push_results_to_gh_pages }}
echo "push result to gh pages : " ${{ inputs.push_results_to_gh_pages }}
- name: run push
if: ${{ input.push_results_to_gh_pages == 'true' }}
if: ${{ inputs.push_results_to_gh_pages == 'true' }}
run: |
echo "evaled to true : Okay ! I am pushing to gh pages now"
- name: stay put
if: ${{ input.push_results_to_gh_pages == 'false' }}
if: ${{ inputs.push_results_to_gh_pages == 'false' }}
run: |
echo "evaled to false : not pushing"
Expand Down

0 comments on commit 4fb5e1a

Please sign in to comment.