-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from newfold-labs/fix/github-actions-deprecat…
…ed-commands Fix GitHub Action deprecated notices.
- Loading branch information
Showing
6 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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 }}" | ||
|
@@ -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 }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters