Merge pull request #277 from LedgerHQ/update/SDK_submodule

[add] SDK submodule updated to develop + will now be auto updated
This commit is contained in:
lpascal-ledger
2022-03-14 14:33:14 +01:00
committed by GitHub
3 changed files with 17 additions and 3 deletions

View File

@@ -38,6 +38,7 @@ runs:
using: 'composite'
steps:
- name: Commit the changes
id: commit
run: |
git config --global user.name ${{ inputs.name }}
ORIGIN="$(pwd)"
@@ -48,17 +49,20 @@ runs:
if [ -z "${CHANGES}" ]; \
then \
echo "No changes, stopping now"; \
cd ${origin} \
echo "::save-state name=COMMIT::NO"; \
cd "${ORIGIN}"; \
exit 0; \
fi
echo -e "Changes:\n${CHANGES}"
git add ${{ inputs.files }}
git commit -am "${{ inputs.message }}"
echo "::save-state name=COMMIT::YES"
git log -n 2
cd ${ORIGIN}
cd "${ORIGIN}"
shell: bash
- name: Push commit
if: ${{ steps.commit.state.COMMIT == 'YES' }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ inputs.secret }}

View File

@@ -41,3 +41,13 @@ jobs:
message: "[update] Branch ${{ steps.extract_branch.outputs.branch }} | Commit ${GITHUB_SHA}"
secret: ${{ secrets.CI_BOT_TOKEN }}
repository: LedgerHQ/ethereum-plugin-sdk
- name: Update the SDK submodule in the Ethereum app
uses: ./.github/actions/commit-changes
with:
name: 'ldg-github-ci'
files: ethereum-plugin-sdk
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