Fix some deprecated GitHub action syntax issues

Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Christian Wolf 2022-10-25 11:52:29 +02:00
Родитель b102a86a14
Коммит 4a52151fde
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 9FC3120E932F73F1
5 изменённых файлов: 12 добавлений и 12 удалений

6
.github/workflows/build-test-images.yml поставляемый
Просмотреть файл

@ -23,12 +23,12 @@ jobs:
shell: bash
id: check
run: |
echo "::set-output name=skip::false"
echo "skip=false" >> $GITHUB_OUTPUT
if [ -z "${{ secrets.DOCKER_HUB_TOKEN }}" ]; then
echo "::set-output name=skip::true"
echo "skip=true" >> $GITHUB_OUTPUT
fi
if [ -z "${{ secrets.DOCKER_HUB_USERNAME }}" ]; then
echo "::set-output name=skip::true"
echo "skip=true" >> $GITHUB_OUTPUT
fi
- name: Checkout the app

6
.github/workflows/deploy-appstore.yml поставляемый
Просмотреть файл

@ -29,7 +29,7 @@ jobs:
- name: Get the date
id: date
run: echo "::set-output name=date::$(date +%Y-%m-%d)"
run: echo "date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
- name: Use cache for NPM
uses: actions/cache@v3.0.11
with:
@ -120,7 +120,7 @@ jobs:
ret=$? &&
code=$(echo "$curl_out" | tail -n 1) &&
msg=$(echo "$curl_out" | head -n -1) &&
echo "::set-output name=code::$code" &&
echo "::set-output name=msg::$msg" &&
echo "code=$code" >> $GITHUB_OUTPUT &&
echo "msg=$msg" >> $GITHUB_OUTPUT &&
echo "Result ($code): $msg" &&
echo "$code" | grep '^\([^45][0-9][0-9]\)$'

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

@ -41,7 +41,7 @@ jobs:
run: |
count=$(find docs/ -name \*.puml | wc -l)
echo "There are $count plantuml files"
echo "::set-output name=num::$count"
echo "num=$count" >> $GITHUB_OUTPUT
- name: Install PlantUML on demand
if: steps.count-plantuml.outputs.num > 0
run: |

6
.github/workflows/pull-checks.yml поставляемый
Просмотреть файл

@ -21,7 +21,7 @@ jobs:
run: |
git diff HEAD~1 -- CHANGELOG.md
lines=$(git diff HEAD~1 -- CHANGELOG.md | wc -l)
echo "::set-output name=lines::$lines"
echo "lines=$lines" >> $GITHUB_OUTPUT
- name: Get all changed file names
id: file-names
@ -31,7 +31,7 @@ jobs:
echo "$lines"
cnt="$(echo "$lines" | grep -v '^package-lock.json$' | wc -l)"
echo "That are $cnt changed files."
echo "::set-output name=num::$cnt"
echo "num=$cnt" >> $GITHUB_OUTPUT
- name: Error if the number of diff lines is zero
run: |
@ -118,7 +118,7 @@ jobs:
fetch-depth: 1
- name: Get the date
id: date
run: echo "::set-output name=date::$(date +%Y-%m-%d)"
run: echo "date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
- name: Cache NPM cache
uses: actions/cache@v3.0.11
with:

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

@ -26,7 +26,7 @@ jobs:
- name: Get the date
id: date
run: echo "::set-output name=date::$(date +%Y-%m-%d)"
run: echo "date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
- name: Cache NPM cache
uses: actions/cache@v3.0.11
with:
@ -385,7 +385,7 @@ jobs:
- name: Get the date
id: date
run: echo "::set-output name=date::$(date +%Y-%m-%d)"
run: echo "date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
- name: Use cache for NPM
uses: actions/cache@v3.0.11
with: