Skip to content

Commit

Permalink
Merge pull request #150 from newfold-labs/fix/github-actions-deprecat…
Browse files Browse the repository at this point in the history
…ed-commands

Fix GitHub Action deprecated notices.
  • Loading branch information
circlecube authored Sep 20, 2023
2 parents 96f0547 + ecfb343 commit 8a95e4e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/satis-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/upload-artifact-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/upload-asset-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/wp-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -72,10 +72,11 @@ jobs:

- name: Check if there are file changes
id: changes
uses: UnicornGlobal/[email protected]
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 }}"
Expand All @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion inc/plugin-nfd-upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function admin_notices() {
}
echo '<p>';
/* 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 '</p></div>';
}

Expand Down

0 comments on commit 8a95e4e

Please sign in to comment.