diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index eb8a00f..6d50b95 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.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 @@ -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 vendor directory uses: actions/cache@v3 diff --git a/.github/workflows/satis-webhook.yml b/.github/workflows/satis-webhook.yml index 7067b8b..757a871 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 83d8773..5c2e830 100644 --- a/.github/workflows/upload-artifact-on-push.yml +++ b/.github/workflows/upload-artifact-on-push.yml @@ -39,8 +39,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 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 72e0cbc..d2cf316 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 @@ -61,7 +61,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 f865b84..c90b2b6 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 }} diff --git a/inc/plugin-nfd-upgrade.php b/inc/plugin-nfd-upgrade.php index fe4557b..25fc2da 100644 --- a/inc/plugin-nfd-upgrade.php +++ b/inc/plugin-nfd-upgrade.php @@ -203,7 +203,7 @@ public function admin_notices() { } echo '

'; /* translators: plugin name */ - printf( esc_html__( 'The "%s" plugin has been deactivated.', 'mojo-marketplace-wp-plugin' ), esc_html( $this->name ) ); + printf( esc_html__( 'The "%s" plugin has been deactivated.', 'wp-plugin-mojo' ), esc_html( $this->name ) ); echo '

'; }