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:
8
.github/actions/commit-changes/action.yml
vendored
8
.github/actions/commit-changes/action.yml
vendored
@@ -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 }}
|
||||
|
||||
10
.github/workflows/sdk-generation.yml
vendored
10
.github/workflows/sdk-generation.yml
vendored
@@ -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
|
||||
|
||||
Submodule ethereum-plugin-sdk updated: 3a797967f4...372446f671
Reference in New Issue
Block a user