Merge pull request #2264 from arunsathiya/master

ci: Use GITHUB_OUTPUT envvar instead of set-output command
This commit is contained in:
Sergio Villalobos 2024-01-23 08:59:24 -08:00 коммит произвёл GitHub
Родитель 6a35b10765 f882bbbc13
Коммит 8e74ac5392
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 4 добавлений и 4 удалений

8
.github/workflows/assignIssueDRI.yml поставляемый
Просмотреть файл

@ -19,7 +19,7 @@ jobs:
env:
ISSUE_OWNER: ${{ github.event.issue.user.login }}
run: |
echo ::set-output name=result::$(node -p -e "['greazer', 'sevillal', 'shsuman', 'tbombach', 'yaoleo34'].filter(item => process.env.ISSUE_OWNER.toLowerCase() === item.toLowerCase()).length > 0 ? 1 : 0")
echo "result=$(node -p -e "['greazer', 'sevillal', 'shsuman', 'tbombach', 'yaoleo34'].filter(item => process.env.ISSUE_OWNER.toLowerCase() === item.toLowerCase()).length > 0 ? 1 : 0")" >> $GITHUB_OUTPUT
shell: bash
- name: Should we proceed
id: proceed
@ -27,13 +27,13 @@ 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: Calculate week number
if: steps.proceed.outputs.result == 1
id: week
run: |
echo ::set-output name=week::$(node .github/workflows/week.js)
echo "week=$(node .github/workflows/week.js)" >> $GITHUB_OUTPUT
shell: bash
- name: Print week number
if: steps.proceed.outputs.result == 1
@ -47,7 +47,7 @@ jobs:
DRI_RESPONSIBLE_DEFAULT: ${{vars.DRI_RESPONSIBLE_DEFAULT}}
DRI_OWNERS: ${{vars.DRI_OWNERS}}
run: |
echo ::set-output name=result::$(node .github/workflows/dri.js)
echo "result=$(node .github/workflows/dri.js)" >> $GITHUB_OUTPUT
shell: bash
- name: Print DRI responsible
if: steps.proceed.outputs.result == 1