build: replace set-output (#6389)

This commit is contained in:
Alexis Saettler
2022-10-18 21:30:43 +02:00
committed by GitHub
parent bf1e3fe3d0
commit 4acaf85861
10 changed files with 32 additions and 32 deletions
+3 -3
View File
@@ -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:
+3 -3
View File
@@ -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:
+5 -5
View File
@@ -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
+3 -3
View File
@@ -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:
+2 -2
View File
@@ -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: |
+2 -2
View File
@@ -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:
+3 -3
View File
@@ -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:
+3 -3
View File
@@ -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:
+6 -6
View File
@@ -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 != ''
+2 -2
View File
@@ -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