diff --git a/.github/workflows/cypress-tests.yml b/.github/workflows/cypress-tests.yml index bee3e605..2d01b00e 100644 --- a/.github/workflows/cypress-tests.yml +++ b/.github/workflows/cypress-tests.yml @@ -44,8 +44,8 @@ jobs: REPO: ${{ github.repository }} run: | mkdir dist - echo ::set-output name=DIST::${PWD}/dist - echo ::set-output name=PACKAGE::${REPO##*/} + echo "DIST=${PWD}/dist" >> $GITHUB_OUTPUT + echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT - name: Use Node.js 16.x uses: actions/setup-node@v3 @@ -54,7 +54,7 @@ jobs: - name: Get npm cache directory id: npm-cache - run: echo "::set-output name=dir::$(npm config get cache)" + run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT - name: Cache node modules uses: actions/cache@v3 @@ -66,7 +66,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 vendor directory uses: actions/cache@v3 diff --git a/.github/workflows/lint-php.yml b/.github/workflows/lint-php.yml index e211a2f2..db2e1f4c 100644 --- a/.github/workflows/lint-php.yml +++ b/.github/workflows/lint-php.yml @@ -38,7 +38,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 if: "!! env.GIT_DIFF" - name: Cache Composer vendor directory diff --git a/.github/workflows/satis-webhook.yml b/.github/workflows/satis-webhook.yml index 7067b8bb..757a8712 100644 --- a/.github/workflows/satis-webhook.yml +++ b/.github/workflows/satis-webhook.yml @@ -15,11 +15,11 @@ jobs: id: package env: REPO: ${{ github.repository }} - run: echo ::set-output name=PACKAGE::${REPO##*/} + run: echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT - name: Set Version id: tag - run: echo ::set-output name=VERSION::${GITHUB_REF##*/} + run: echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT - name: Repository Dispatch uses: peter-evans/repository-dispatch@v2 diff --git a/.github/workflows/upload-artifact-on-push.yml b/.github/workflows/upload-artifact-on-push.yml index fbaed146..786c84b8 100644 --- a/.github/workflows/upload-artifact-on-push.yml +++ b/.github/workflows/upload-artifact-on-push.yml @@ -40,8 +40,8 @@ jobs: REPO: ${{ github.repository }} run: | mkdir dist - echo ::set-output name=DIST::${PWD}/dist - echo ::set-output name=PACKAGE::${REPO##*/} + echo "DIST=${PWD}/dist" >> $GITHUB_OUTPUT + echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT - name: Use Node.js 16.x uses: actions/setup-node@v3 @@ -50,7 +50,7 @@ jobs: - name: Get npm cache directory id: npm-cache - run: echo "::set-output name=dir::$(npm config get cache)" + run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT - name: Cache node modules uses: actions/cache@v3 @@ -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 vendor directory uses: actions/cache@v3 diff --git a/.github/workflows/upload-asset-on-release.yml b/.github/workflows/upload-asset-on-release.yml index bea625fb..d9f13d80 100644 --- a/.github/workflows/upload-asset-on-release.yml +++ b/.github/workflows/upload-asset-on-release.yml @@ -50,8 +50,8 @@ jobs: REPO: ${{ github.repository }} run: | mkdir dist - echo ::set-output name=DIST::${PWD}/dist - echo ::set-output name=PACKAGE::${REPO##*/} + echo "DIST=${PWD}/dist" >> $GITHUB_OUTPUT + echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT - name: Use Node.js 16.x uses: actions/setup-node@v3 @@ -60,7 +60,7 @@ jobs: - name: Get npm cache directory id: npm-cache - run: echo "::set-output name=dir::$(npm config get cache)" + run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT - name: Cache node modules uses: actions/cache@v3 @@ -72,7 +72,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 vendor directory uses: actions/cache@v3 diff --git a/.github/workflows/wp-i18n.yml b/.github/workflows/wp-i18n.yml index 93b68f25..4eea528e 100644 --- a/.github/workflows/wp-i18n.yml +++ b/.github/workflows/wp-i18n.yml @@ -24,8 +24,8 @@ jobs: REPO: ${{ github.repository }} run: | mkdir dist - echo ::set-output name=DIST::${PWD}/dist - echo ::set-output name=PACKAGE::${REPO##*/} + echo "DIST=${PWD}/dist" >> $GITHUB_OUTPUT + echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -36,7 +36,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 vendor directory uses: actions/cache@v3 @@ -72,10 +72,11 @@ jobs: - name: Check if there are file changes id: changes - uses: UnicornGlobal/has-changes-action@v1.0.12 + continue-on-error: true + run: git diff --exit-code - name: Commit web files - if: steps.changes.outputs.changed == 1 + if: steps.changes.outcome == 'failure' run: | git config --local user.name "${{ github.event.head_commit.author.name }}" git config --local user.email "${{ github.event.head_commit.author.email }}" @@ -85,7 +86,7 @@ jobs: git status - name: Push changes - if: steps.changes.outputs.changed == 1 + if: steps.changes.outcome == 'failure' uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }}