Enable PR on all plugins workflow for all plugins
This commit is contained in:
12
.github/workflows/pr_on_all_plugins.yml
vendored
12
.github/workflows/pr_on_all_plugins.yml
vendored
@@ -96,8 +96,6 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout plugin repository
|
- name: Checkout plugin repository
|
||||||
# TODO: remove restriction once finalized
|
|
||||||
if: matrix.repo == 'app-plugin-uniswap-test2'
|
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: LedgerHQ/${{ matrix.repo }}
|
repository: LedgerHQ/${{ matrix.repo }}
|
||||||
@@ -111,15 +109,11 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Update submodule
|
- name: Update submodule
|
||||||
# TODO: remove restriction once finalized
|
|
||||||
if: matrix.repo == 'app-plugin-uniswap-test2'
|
|
||||||
run: |
|
run: |
|
||||||
cd ethereum-plugin-sdk/
|
cd ethereum-plugin-sdk/
|
||||||
git checkout ${{ needs.get-sdk-ref.outputs.sdk_ref }}
|
git checkout ${{ needs.get-sdk-ref.outputs.sdk_ref }}
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
# TODO: remove restriction once finalized
|
|
||||||
if: matrix.repo == 'app-plugin-uniswap-test2'
|
|
||||||
id: commit-changes
|
id: commit-changes
|
||||||
run: |
|
run: |
|
||||||
# Set credentials for commit creation
|
# Set credentials for commit creation
|
||||||
@@ -137,8 +131,6 @@ jobs:
|
|||||||
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
|
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Push commit
|
- name: Push commit
|
||||||
# TODO: remove restriction once finalized
|
|
||||||
if: matrix.repo == 'app-plugin-uniswap-test2'
|
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.CI_BOT_TOKEN }}
|
github_token: ${{ secrets.CI_BOT_TOKEN }}
|
||||||
@@ -146,16 +138,12 @@ jobs:
|
|||||||
repository: LedgerHQ/${{ matrix.repo }}
|
repository: LedgerHQ/${{ matrix.repo }}
|
||||||
|
|
||||||
- name: Create 'auto' label if missing
|
- name: Create 'auto' label if missing
|
||||||
# TODO: remove restriction once finalized
|
|
||||||
if: matrix.repo == 'app-plugin-uniswap-test2'
|
|
||||||
run: |
|
run: |
|
||||||
if [[ -z $(gh label list --search auto) ]]; then
|
if [[ -z $(gh label list --search auto) ]]; then
|
||||||
gh label create 'auto' --color 'b4a8d1' --description 'Automatically created'
|
gh label create 'auto' --color 'b4a8d1' --description 'Automatically created'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create pull request and commment on SDK issue
|
- name: Create pull request and commment on SDK issue
|
||||||
# TODO: remove restriction once finalized
|
|
||||||
if: matrix.repo == 'app-plugin-uniswap-test2'
|
|
||||||
run: |
|
run: |
|
||||||
# Create the PR with a placeholder body. Will be consolidated at a later step
|
# Create the PR with a placeholder body. Will be consolidated at a later step
|
||||||
pr_url=$(gh pr create \
|
pr_url=$(gh pr create \
|
||||||
|
|||||||
Reference in New Issue
Block a user