Fix deprecated set-output and save-state commands

See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
for more details.

As actions/cache@v2 was using deprecated `save-state` command, its usage
has been updated to use v3. For good measure, other actions have also
been upgraded to their latest version.
pull/11965/head
Christophe Bliard 2 years ago committed by Oliver Günther
parent da34177f06
commit a99bcbb50e
  1. 2
      .github/workflows/brakeman-scan-core.yml
  2. 2
      .github/workflows/codeql-scan-core.yml
  3. 2
      .github/workflows/create-merge-release-into-dev-pr.yml
  4. 9
      .github/workflows/crowdin.yml
  5. 2
      .github/workflows/docker.yml
  6. 2
      .github/workflows/eslint-core.yml
  7. 2
      .github/workflows/pullpreview.yml
  8. 2
      .github/workflows/rubocop-core.yml
  9. 12
      .github/workflows/test-core.yml

@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Setup Ruby - name: Setup Ruby
uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@v1

@ -24,7 +24,7 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v2 uses: github/codeql-action/init@v2

@ -23,7 +23,7 @@ jobs:
exit 1 exit 1
fi fi
echo "::set-output name=branch::${BRANCH}" echo "branch=${BRANCH}" >> $GITHUB_OUTPUT
crowdin: crowdin:
permissions: permissions:

@ -25,8 +25,7 @@ jobs:
exit 1 exit 1
fi fi
echo "::set-output name=branch::${BRANCH}" echo "branch=${BRANCH}" >> $GITHUB_OUTPUT
echo "::set-output name=crowdin_release_branch::release"
crowdin: crowdin:
permissions: permissions:
@ -42,7 +41,7 @@ jobs:
- dev - dev
- "${{ needs.setup.outputs.latest_release_branch }}" - "${{ needs.setup.outputs.latest_release_branch }}"
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
ref: ${{ matrix.branch }} ref: ${{ matrix.branch }}
fetch-depth: 1 fetch-depth: 1
@ -54,9 +53,9 @@ jobs:
run: | run: |
echo "Setting crowdin branch from $BRANCH" echo "Setting crowdin branch from $BRANCH"
if [ "$BRANCH" = "dev" ]; then if [ "$BRANCH" = "dev" ]; then
echo "::set-output name=crowdin_branch::dev" echo "crowdin_branch=dev" >> $GITHUB_OUTPUT
else else
echo "::set-output name=crowdin_branch::release" echo "crowdin_branch=release" >> $GITHUB_OUTPUT
fi fi
- name: "Updating translations" - name: "Updating translations"
uses: crowdin/github-action@1.4.4 uses: crowdin/github-action@1.4.4

@ -19,7 +19,7 @@ jobs:
env: env:
INPUT_BUILDOPTIONS: --pull INPUT_BUILDOPTIONS: --pull
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@v3
- name: Prepare docker files - name: Prepare docker files
run: | run: |
cp ./docker/prod/Dockerfile ./Dockerfile cp ./docker/prod/Dockerfile ./Dockerfile

@ -14,7 +14,7 @@ jobs:
name: eslint name: eslint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: opf/action-eslint@v2 - uses: opf/action-eslint@v2

@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Generate .env.pullpreview file - name: Generate .env.pullpreview file
run: | run: |
echo "OP_ADMIN_USER_SEEDER_FORCE_PASSWORD_CHANGE=off" >> .env.pullpreview echo "OP_ADMIN_USER_SEEDER_FORCE_PASSWORD_CHANGE=off" >> .env.pullpreview

@ -13,7 +13,7 @@ jobs:
name: rubocop name: rubocop
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@v1

@ -28,9 +28,9 @@ jobs:
CI_RETRY_COUNT: 3 CI_RETRY_COUNT: 3
LOCAL_DEV_CHECK: 1 LOCAL_DEV_CHECK: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: cache - name: cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: /tmp/cache path: /tmp/cache
key: ${{ runner.os }}-ruby32-core-tests-units-${{ hashFiles('**/Gemfile.lock') }} key: ${{ runner.os }}-ruby32-core-tests-units-${{ hashFiles('**/Gemfile.lock') }}
@ -58,9 +58,9 @@ jobs:
CAPYBARA_AWS_ACCESS_KEY_ID: "${{ secrets.CAPYBARA_AWS_ACCESS_KEY_ID }}" CAPYBARA_AWS_ACCESS_KEY_ID: "${{ secrets.CAPYBARA_AWS_ACCESS_KEY_ID }}"
CAPYBARA_AWS_SECRET_ACCESS_KEY: "${{ secrets.CAPYBARA_AWS_SECRET_ACCESS_KEY }}" CAPYBARA_AWS_SECRET_ACCESS_KEY: "${{ secrets.CAPYBARA_AWS_SECRET_ACCESS_KEY }}"
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: cache - name: cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: /tmp/cache path: /tmp/cache
key: ${{ runner.os }}-ruby32-core-tests-features-${{ hashFiles('**/Gemfile.lock') }} key: ${{ runner.os }}-ruby32-core-tests-features-${{ hashFiles('**/Gemfile.lock') }}
@ -81,11 +81,11 @@ jobs:
if: github.repository == 'opf/openproject' if: github.repository == 'opf/openproject'
runs-on: [ubuntu-latest] runs-on: [ubuntu-latest]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@v1
with: with:
bundler-cache: true bundler-cache: true
- uses: actions/setup-node@v2 - uses: actions/setup-node@v3
with: with:
node-version: '14' node-version: '14'
- run: ./script/api/validate_spec - run: ./script/api/validate_spec

Loading…
Cancel
Save