Skip to content

Commit

Permalink
Replace deprecated set-output github (#12961)
Browse files Browse the repository at this point in the history
action command
  • Loading branch information
cibinmathew authored Oct 6, 2023
1 parent f193142 commit 5bf5b91
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/actions/set-python-conda/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
id: python_run
# Use `bash -l {0}` when using the conda actions.
shell: bash -l {0}
run: python -c "import sys;print('::set-output name=python_path::' + sys.executable)"
run: python -c "import sys;print('python_path=' + sys.executable)" >> $GITHUB_OUTPUT

- name: Push to environment
# Use `bash -l {0}` when using the conda actions.
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/set-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
- name: Output python path
id: python_run
shell: bash
run: python -c "import sys;print('::set-output name=python_path::' + sys.executable)"
run: python -c "import sys;print('python_path=' + sys.executable)" >> $GITHUB_OUTPUT

- name: Push to environment
shell: bash
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/assignIssue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
env:
ISSUE_OWNER: ${{github.event.issue.user.login}}
run: |
echo ::set-output name=result::$(node -p -e "['amunger', 'DonJayamanne', 'minsa110', 'rebornix', 'roblourens', 'kieferrm'].filter(item => process.env.ISSUE_OWNER.toLowerCase() === item.toLowerCase()).length > 0 ? 1 : 0")
echo result=$(node -p -e "['amunger', 'DonJayamanne', 'minsa110', 'rebornix', 'roblourens', 'kieferrm'].filter(item => process.env.ISSUE_OWNER.toLowerCase() === item.toLowerCase()).length > 0 ? 1 : 0") >> $GITHUB_OUTPUT
shell: bash
- name: Should we proceed
id: proceed
Expand All @@ -28,25 +28,25 @@ jobs:
ISSUE_ASSIGNEES: ${{toJson(github.event.issue.assignees)}}
ISSUE_IS_INTERNAL: ${{steps.internal.outputs.result}}
run: |
echo ::set-output name=result::$(node -p -e "process.env.ISSUE_IS_INTERNAL === '0' && JSON.parse(process.env.ISSUE_ASSIGNEES).length === 0 ? 1 : 0")
echo result=$(node -p -e "process.env.ISSUE_IS_INTERNAL === '0' && JSON.parse(process.env.ISSUE_ASSIGNEES).length === 0 ? 1 : 0") >> $GITHUB_OUTPUT
shell: bash
- name: Day of week
if: steps.proceed.outputs.result == 1
id: day
run: |
echo ::set-output name=number::$(node -p -e "new Date().getDay()")
echo 'number::$(node -p -e "new Date().getDay()")' >> $GITHUB_OUTPUT
shell: bash
- name: Hour of day
if: steps.proceed.outputs.result == 1
id: hour
run: |
echo ::set-output name=hour::$(node -p -e "(new Date().getUTCHours() - 7)%24")
echo 'hour::$(node -p -e "(new Date().getUTCHours() - 7)%24")' >> $GITHUB_OUTPUT
shell: bash
- name: Week Number
if: steps.proceed.outputs.result == 1
id: week
run: |
echo ::set-output name=odd::$(node .github/workflows/week.js)
echo "odd=$(node .github/workflows/week.js)" >> $GITHUB_OUTPUT
shell: bash
- name: Print day and week
if: steps.proceed.outputs.result == 1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ jobs:
if: matrix.os == 'windows-latest'
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- name: Cache npm on windows
uses: actions/cache@v3
if: matrix.os == 'windows-latest'
Expand Down Expand Up @@ -501,7 +501,7 @@ jobs:
if: matrix.os == 'windows-latest'
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- name: Cache npm on windows
uses: actions/cache@v3
if: matrix.os == 'windows-latest'
Expand Down

0 comments on commit 5bf5b91

Please sign in to comment.