From 28dbb4c8a81970f021409eff276613b349d44621 Mon Sep 17 00:00:00 2001 From: Opeyemi <54288773+Eebru-gzy@users.noreply.github.com> Date: Mon, 5 Dec 2022 15:04:04 +0000 Subject: [PATCH] update ::set-output to latest (#4177) * update ::set-output to latest * update workflow for linter error --- .github/workflows/build-browser.yml | 6 +++--- .github/workflows/build-cli.yml | 2 +- .github/workflows/build-desktop.yml | 18 +++++++++--------- .github/workflows/build-web.yml | 4 ++-- .github/workflows/release-desktop-beta.yml | 10 +++++----- .github/workflows/release-desktop.yml | 6 +++--- .github/workflows/version-auto-bump.yml | 2 +- .github/workflows/version-bump.yml | 9 ++++----- 8 files changed, 28 insertions(+), 29 deletions(-) diff --git a/.github/workflows/build-browser.yml b/.github/workflows/build-browser.yml index 0a5746ce68..e54dc936eb 100644 --- a/.github/workflows/build-browser.yml +++ b/.github/workflows/build-browser.yml @@ -63,8 +63,8 @@ jobs: repo_url=https://github.com/$GITHUB_REPOSITORY.git adj_build_num=${GITHUB_SHA:0:7} - echo "::set-output name=repo_url::$repo_url" - echo "::set-output name=adj_build_number::$adj_build_num" + echo "repo_url=$repo_url" >> $GITHUB_OUTPUT + echo "adj_build_number=$adj_build_num" >> $GITHUB_OUTPUT locales-test: @@ -183,7 +183,7 @@ jobs: name: dist-opera-MV3-${{ env._BUILD_NUMBER }}.zip path: apps/browser/dist/dist-opera-mv3.zip if-no-files-found: error - + - name: Upload Chrome artifact uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0 with: diff --git a/.github/workflows/build-cli.yml b/.github/workflows/build-cli.yml index e32dbedb24..41b2a188fa 100644 --- a/.github/workflows/build-cli.yml +++ b/.github/workflows/build-cli.yml @@ -62,7 +62,7 @@ jobs: id: retrieve-version run: | PKG_VERSION=$(jq -r .version package.json) - echo "::set-output name=package_version::$PKG_VERSION" + echo "package_version=$PKG_VERSION" >> $GITHUB_OUTPUT cli: diff --git a/.github/workflows/build-desktop.yml b/.github/workflows/build-desktop.yml index be69b22a8a..f92ae8a71e 100644 --- a/.github/workflows/build-desktop.yml +++ b/.github/workflows/build-desktop.yml @@ -87,29 +87,29 @@ jobs: id: retrieve-version run: | PKG_VERSION=$(jq -r .version src/package.json) - echo "::set-output name=package_version::$PKG_VERSION" + echo "package_version=$PKG_VERSION" >> $GITHUB_OUTPUT - name: Increment Version id: increment-version run: | BUILD_NUMBER=$(expr 3000 + $GITHUB_RUN_NUMBER) echo "Setting build number to $BUILD_NUMBER" - echo "::set-output name=build_number::$BUILD_NUMBER" + echo "build_number=$BUILD_NUMBER" >> $GITHUB_OUTPUT - name: Get Version Channel id: release-channel run: | case "${{ steps.retrieve-version.outputs.package_version }}" in *"alpha"*) - echo "::set-output name=channel::alpha" + echo "channel=alpha" >> $GITHUB_OUTPUT echo "[!] We do not yet support 'alpha'" exit 1 ;; *"beta"*) - echo "::set-output name=channel::beta" + echo "channel=beta" >> $GITHUB_OUTPUT ;; *) - echo "::set-output name=channel::latest" + echo "channel=latest" >> $GITHUB_OUTPUT ;; esac @@ -117,15 +117,15 @@ jobs: id: branch-check run: | if [[ $(git ls-remote --heads origin rc) ]]; then - echo "::set-output name=rc_branch_exists::1" + echo "rc_branch_exists=1" >> $GITHUB_OUTPUT else - echo "::set-output name=rc_branch_exists::0" + echo "rc_branch_exists=0" >> $GITHUB_OUTPUT fi if [[ $(git ls-remote --heads origin hotfix-rc-desktop) ]]; then - echo "::set-output name=hotfix_branch_exists::1" + echo "hotfix_branch_exists=1" >> $GITHUB_OUTPUT else - echo "::set-output name=hotfix_branch_exists::0" + echo "hotfix_branch_exists=0" >> $GITHUB_OUTPUT fi diff --git a/.github/workflows/build-web.yml b/.github/workflows/build-web.yml index eea60ccfbb..b0bd282de6 100644 --- a/.github/workflows/build-web.yml +++ b/.github/workflows/build-web.yml @@ -60,7 +60,7 @@ jobs: - name: Get GitHub sha as version id: version - run: echo "::set-output name=value::${GITHUB_SHA:0:7}" + run: echo "value=${GITHUB_SHA:0:7}" >> $GITHUB_OUTPUT build-artifacts: name: Build artifacts @@ -303,7 +303,7 @@ jobs: IMAGE_TAG=$IMAGE_TAG-$TAG_EXTENSION fi - echo "::set-output name=value::$IMAGE_TAG" + echo "value=$IMAGE_TAG" >> $GITHUB_OUTPUT - name: Tag image env: diff --git a/.github/workflows/release-desktop-beta.yml b/.github/workflows/release-desktop-beta.yml index a57b600d0e..fb456de195 100644 --- a/.github/workflows/release-desktop-beta.yml +++ b/.github/workflows/release-desktop-beta.yml @@ -60,22 +60,22 @@ jobs: run: | BUILD_NUMBER=$(expr 3000 + $GITHUB_RUN_NUMBER) echo "Setting build number to $BUILD_NUMBER" - echo "::set-output name=build_number::$BUILD_NUMBER" + echo "build_number=$BUILD_NUMBER" >> $GITHUB_OUTPUT - name: Get Version Channel id: release-channel run: | case "${{ steps.version.outputs.version }}" in *"alpha"*) - echo "::set-output name=channel::alpha" + echo "channel=alpha" >> $GITHUB_OUTPUT echo "[!] We do not yet support 'alpha'" exit 1 ;; *"beta"*) - echo "::set-output name=channel::beta" + echo "channel=beta" >> $GITHUB_OUTPUT ;; *) - echo "::set-output name=channel::latest" + echo "channel=latest" >> $GITHUB_OUTPUT ;; esac @@ -102,7 +102,7 @@ jobs: git push -u origin $branch_name - echo "::set-output name=branch-name::$branch_name" + echo "branch-name=$branch_name" >> $GITHUB_OUTPUT linux: name: Linux Build diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.yml index debaf2d05f..a4aceac962 100644 --- a/.github/workflows/release-desktop.yml +++ b/.github/workflows/release-desktop.yml @@ -80,15 +80,15 @@ jobs: run: | case "${{ steps.version.outputs.version }}" in *"alpha"*) - echo "::set-output name=channel::alpha" + echo "channel=alpha" >> $GITHUB_OUTPUT echo "[!] We do not yet support 'alpha'" exit 1 ;; *"beta"*) - echo "::set-output name=channel::beta" + echo "channel=beta" >> $GITHUB_OUTPUT ;; *) - echo "::set-output name=channel::latest" + echo "channel=latest" >> $GITHUB_OUTPUT ;; esac diff --git a/.github/workflows/version-auto-bump.yml b/.github/workflows/version-auto-bump.yml index 3e5b5fc3c2..7dee24e920 100644 --- a/.github/workflows/version-auto-bump.yml +++ b/.github/workflows/version-auto-bump.yml @@ -36,7 +36,7 @@ jobs: NEW_VER=$CURR_MAJOR.$NEW_PATCH echo "New Version: $NEW_VER" - echo "::set-output name=new-version::$NEW_VER" + echo "new-version=$NEW_VER" >> $GITHUB_OUTPUT trigger_version_bump: name: "Trigger desktop version bump workflow" diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index 80d54eef14..f7ba508c6c 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -56,7 +56,7 @@ jobs: VERSION: ${{ github.event.inputs.version_number }} run: | CLIENT=$(python -c "print('$CLIENT_NAME'.lower())") - echo "::set-output name=client::$CLIENT" + echo "client=$CLIENT" >> $GITHUB_OUTPUT git switch -c ${CLIENT}_version_bump_${VERSION} @@ -131,9 +131,9 @@ jobs: id: version-changed run: | if [ -n "$(git status --porcelain)" ]; then - echo "::set-output name=changes_to_commit::TRUE" + echo "changes_to_commit=TRUE" >> $GITHUB_OUTPUT else - echo "::set-output name=changes_to_commit::FALSE" + echo "changes_to_commit=FALSE" >> $GITHUB_OUTPUT echo "No changes to commit!"; fi @@ -142,8 +142,7 @@ jobs: env: CLIENT: ${{ steps.branch.outputs.client }} VERSION: ${{ github.event.inputs.version_number }} - run: | - git commit -m "Bumped ${CLIENT} version to ${VERSION}" -a + run: git commit -m "Bumped ${CLIENT} version to ${VERSION}" -a - name: Push changes if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' }}