Skip to content

Commit 55b6f9b

Browse files
committed
[fix] Step condition variable was improperly defined
1 parent e000273 commit 55b6f9b

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/actions/commit-changes/action.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,34 @@ runs:
4444
ORIGIN="$(pwd)"
4545
cd ${{ inputs.directory }}
4646
git switch ${{ inputs.branch }} 2>/dev/null || git switch -c ${{ inputs.branch }}
47+
echo "-----------------------------------------------------------"
48+
echo "Initial repo status"
4749
git status
4850
CHANGES="$(git status --porcelain ${{ inputs.files }})"
4951
if [ -z "${CHANGES}" ]; \
5052
then \
53+
echo "-----------------------------------------------------------"; \
5154
echo "No changes, stopping now"; \
52-
echo "::save-state name=COMMIT::NO"; \
55+
echo "COMMIT=NO" > $GITHUB_ENV; \
5356
cd "${ORIGIN}"; \
5457
exit 0; \
5558
fi
5659
echo -e "Changes:\n${CHANGES}"
5760
git add ${{ inputs.files }}
61+
echo "-----------------------------------------------------------"
62+
echo "Repo status before commit"
63+
git status
5864
git commit -am "${{ inputs.message }}"
59-
echo "::save-state name=COMMIT::YES"
65+
echo "COMMIT=YES" > $GITHUB_ENV
6066
git log -n 2
6167
cd "${ORIGIN}"
6268
shell: bash
6369

70+
- run: echo "${{ env.COMMIT }}"
71+
shell: bash
72+
6473
- name: Push commit
65-
if: ${{ steps.commit.state.COMMIT == 'YES' }}
74+
if: ${{ env.COMMIT == 'YES' }}
6675
uses: ad-m/github-push-action@master
6776
with:
6877
github_token: ${{ inputs.secret }}

.github/workflows/sdk-generation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ jobs:
5050
branch: ${{ steps.extract_branch.outputs.branch }}
5151
message: "[update][SDK] Branch ${{ steps.extract_branch.outputs.branch }} | Commit ${GITHUB_SHA}"
5252
secret: ${{ secrets.CI_BOT_TOKEN }}
53-
repository: LedgerHQ/ethereum-plugin-sdk
53+
repository: LedgerHQ/app-ethereum

0 commit comments

Comments
 (0)