Merge pull request #278 from LedgerHQ/fix/broken_ci_trigger

[fix] Step condition variable was improperly defined
This commit is contained in:
lpascal-ledger
2022-03-15 15:00:18 +01:00
committed by GitHub
3 changed files with 15 additions and 5 deletions

View File

@@ -44,25 +44,34 @@ runs:
ORIGIN="$(pwd)"
cd ${{ inputs.directory }}
git switch ${{ inputs.branch }} 2>/dev/null || git switch -c ${{ inputs.branch }}
echo "-----------------------------------------------------------"
echo "Initial repo status"
git status
CHANGES="$(git status --porcelain ${{ inputs.files }})"
if [ -z "${CHANGES}" ]; \
then \
echo "-----------------------------------------------------------"; \
echo "No changes, stopping now"; \
echo "::save-state name=COMMIT::NO"; \
echo "COMMIT=NO" > $GITHUB_ENV; \
cd "${ORIGIN}"; \
exit 0; \
fi
echo -e "Changes:\n${CHANGES}"
git add ${{ inputs.files }}
echo "-----------------------------------------------------------"
echo "Repo status before commit"
git status
git commit -am "${{ inputs.message }}"
echo "::save-state name=COMMIT::YES"
echo "COMMIT=YES" > $GITHUB_ENV
git log -n 2
cd "${ORIGIN}"
shell: bash
- run: echo "${{ env.COMMIT }}"
shell: bash
- name: Push commit
if: ${{ steps.commit.state.COMMIT == 'YES' }}
if: ${{ env.COMMIT == 'YES' }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ inputs.secret }}

View File

@@ -50,4 +50,4 @@ jobs:
branch: ${{ steps.extract_branch.outputs.branch }}
message: "[update][SDK] Branch ${{ steps.extract_branch.outputs.branch }} | Commit ${GITHUB_SHA}"
secret: ${{ secrets.CI_BOT_TOKEN }}
repository: LedgerHQ/ethereum-plugin-sdk
repository: LedgerHQ/app-ethereum

View File

@@ -12,7 +12,8 @@ typedef enum {
ETH_PLUGIN_INTERFACE_VERSION_1 = 1,
ETH_PLUGIN_INTERFACE_VERSION_2 = 2,
ETH_PLUGIN_INTERFACE_VERSION_3 = 3,
ETH_PLUGIN_INTERFACE_VERSION_LATEST = 4,
ETH_PLUGIN_INTERFACE_VERSION_4 = 4,
ETH_PLUGIN_INTERFACE_VERSION_LATEST = 5,
} eth_plugin_interface_version_t;
typedef enum {