From 4acaf85861280313a67d6972a5151f7eef200e04 Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Tue, 18 Oct 2022 21:30:43 +0200 Subject: [PATCH] build: replace set-output (#6389) --- .github/workflows/build.yml | 6 +++--- .github/workflows/cypress.yml | 6 +++--- .github/workflows/deploy.yml | 10 +++++----- .github/workflows/docker.yml | 6 +++--- .github/workflows/heroku.yml | 4 ++-- .github/workflows/migration_tests.yml | 4 ++-- .github/workflows/release.yml | 6 +++--- .github/workflows/static.yml | 6 +++--- .github/workflows/tests.yml | 12 ++++++------ scripts/ci/package.sh | 4 ++-- 10 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 345568f78..0ed93b152 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ env: php-version: '8.1' node-version: 18 -concurrency: +concurrency: group: Build ${{ github.ref }} cancel-in-progress: true @@ -55,7 +55,7 @@ jobs: - name: Get Composer Cache Directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer files uses: actions/cache@v3 with: @@ -76,7 +76,7 @@ jobs: node-version: ${{ env.node-version }} - name: Get yarn cache directory path id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Cache yarn files uses: actions/cache@v3 with: diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index ddfb07094..6e13cc7ac 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -7,7 +7,7 @@ on: env: node-version: 18 -concurrency: +concurrency: group: Cypress tests ${{ github.ref }} cancel-in-progress: true @@ -47,7 +47,7 @@ jobs: - name: Get Composer Cache Directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer files uses: actions/cache@v3 with: @@ -68,7 +68,7 @@ jobs: node-version: ${{ env.node-version }} - name: Get yarn cache directory path id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Cache yarn files uses: actions/cache@v3 with: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8ffbfc2e1..a9f947caf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,7 +17,7 @@ env: php-version: '8.1' node-version: 18 -concurrency: +concurrency: group: Deploy ${{ github.ref }} cancel-in-progress: true @@ -60,7 +60,7 @@ jobs: - name: Get Composer Cache Directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer files uses: actions/cache@v3 with: @@ -81,7 +81,7 @@ jobs: node-version: ${{ env.node-version }} - name: Get yarn cache directory path id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Cache yarn files uses: actions/cache@v3 with: @@ -111,8 +111,8 @@ jobs: - name: Get version id: version run: | - echo "::set-output name=version::$(git describe --abbrev=0 --tags | sed 's/^v//')" - echo "::set-output name=release::$(git describe --abbrev=0 --tags --exact-match $GITHUB_SHA 2>/dev/null || git log --pretty="%h" -n1 $GITHUB_SHA)" + echo "version=$(git describe --abbrev=0 --tags | sed 's/^v//')" >> $GITHUB_OUTPUT + echo "release=$(git describe --abbrev=0 --tags --exact-match $GITHUB_SHA 2>/dev/null || git log --pretty="%h" -n1 $GITHUB_SHA)" >> $GITHUB_OUTPUT - name: Prepare environment diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0ec0bb986..f35c8ee5e 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -9,7 +9,7 @@ env: php-version: '8.1' node-version: 18 -concurrency: +concurrency: group: Docker ${{ github.ref }} cancel-in-progress: true @@ -47,7 +47,7 @@ jobs: # Composer - name: Get Composer Cache Directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer files uses: actions/cache@v3 with: @@ -65,7 +65,7 @@ jobs: node-version: ${{ env.node-version }} - name: Get yarn cache directory path id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Cache yarn files uses: actions/cache@v3 with: diff --git a/.github/workflows/heroku.yml b/.github/workflows/heroku.yml index 41148ed31..bc17e26f7 100644 --- a/.github/workflows/heroku.yml +++ b/.github/workflows/heroku.yml @@ -20,8 +20,8 @@ jobs: - name: Get version id: version run: | - echo "::set-output name=version::$(git describe --abbrev=0 --tags | sed 's/^v//')" - echo "::set-output name=release::$(git describe --abbrev=0 --tags --exact-match $GITHUB_SHA 2>/dev/null || git log --pretty="%h" -n1 $GITHUB_SHA)" + echo "version=$(git describe --abbrev=0 --tags | sed 's/^v//')" >> $GITHUB_OUTPUT + echo "release=$(git describe --abbrev=0 --tags --exact-match $GITHUB_SHA 2>/dev/null || git log --pretty="%h" -n1 $GITHUB_SHA)" >> $GITHUB_OUTPUT - name: Configure Git run: | diff --git a/.github/workflows/migration_tests.yml b/.github/workflows/migration_tests.yml index 05890399c..0a7dadb1e 100644 --- a/.github/workflows/migration_tests.yml +++ b/.github/workflows/migration_tests.yml @@ -11,7 +11,7 @@ on: workflows: ['Compress images'] types: [completed] -concurrency: +concurrency: group: Migration tests ${{ github.ref }} cancel-in-progress: true @@ -52,7 +52,7 @@ jobs: - name: Get Composer Cache Directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer files uses: actions/cache@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c149ad16b..b750e1223 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,7 +56,7 @@ jobs: - name: New release published if: steps.semantic.outputs.new_release_published == 'true' - run: echo ${{ steps.semantic.outputs.new_release_version }} + run: echo "### Release ${{ steps.semantic.outputs.new_release_version }} created :rocket:" >> $GITHUB_STEP_SUMMARY - name: Store changelog file if: steps.semantic.outputs.new_release_published == 'true' @@ -91,7 +91,7 @@ jobs: # Composer - name: Get Composer Cache Directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer files uses: actions/cache@v3 with: @@ -109,7 +109,7 @@ jobs: node-version: ${{ env.build-node-version }} - name: Get yarn cache directory path id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Cache yarn files uses: actions/cache@v3 with: diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 45b1a2dd2..84663a410 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -11,7 +11,7 @@ on: env: php-version: '8.1' -concurrency: +concurrency: group: Static analysis ${{ github.ref }} cancel-in-progress: true @@ -31,7 +31,7 @@ jobs: - name: Get Composer Cache Directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer files uses: actions/cache@v3 with: @@ -64,7 +64,7 @@ jobs: - name: Get Composer Cache Directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer files uses: actions/cache@v3 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5aec5b210..443f86011 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,7 +17,7 @@ env: default-php-version: '8.1' node-version: 18 -concurrency: +concurrency: group: Unit tests ${{ github.ref }} cancel-in-progress: true @@ -62,7 +62,7 @@ jobs: - name: Get Composer Cache Directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer files uses: actions/cache@v3 with: @@ -178,7 +178,7 @@ jobs: - name: Get Composer Cache Directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer files uses: actions/cache@v3 with: @@ -199,7 +199,7 @@ jobs: node-version: ${{ env.node-version }} - name: Get yarn cache directory path id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Cache yarn files uses: actions/cache@v3 with: @@ -314,13 +314,13 @@ jobs: run: | version=$(git tag --points-at HEAD) test -z "$version" && version="master" - echo "::set-output name=value::$version" + echo "value=$version" >> $GITHUB_OUTPUT - name: Set coverage list id: coverage run: | SONAR_COVERAGE=$(ls -m --format=comma results/coverage/coverage*.xml | sed -e ':a;N;$!ba;s/\n//g; s/ //g;') - echo "::set-output name=list::$SONAR_COVERAGE" + echo "list=$SONAR_COVERAGE" >> $GITHUB_OUTPUT - name: SonarCloud Scan if: env.SONAR_TOKEN != '' diff --git a/scripts/ci/package.sh b/scripts/ci/package.sh index 29f2745f8..19184188e 100755 --- a/scripts/ci/package.sh +++ b/scripts/ci/package.sh @@ -74,7 +74,7 @@ mkdir -p $package/storage/framework/sessions tar chfj $package.tar.bz2 --exclude .gitignore --exclude .gitkeep $package sha512sum "$package.tar.bz2" > "$package.tar.bz2.sha512" -echo "::set-output name=package::$package.tar.bz2" +echo "package=$package.tar.bz2" >> $GITHUB_OUTPUT # ASSETS @@ -88,7 +88,7 @@ ln -s $ROOT/public/fonts $assets/public/ tar chfj $assets.tar.bz2 --exclude .gitignore --exclude .gitkeep $assets sha512sum "$assets.tar.bz2" > "$assets.tar.bz2.sha512" -echo "::set-output name=assets::$assets.tar.bz2" +echo "assets=$assets.tar.bz2" >> $GITHUB_OUTPUT # SIGN