Skip to content

Commit

Permalink
Merge pull request #487 from LedgerHQ/fbe/pr_on_all_plugins_no_restri…
Browse files Browse the repository at this point in the history
…ction

Enable PR on all plugins workflow for all plugins
  • Loading branch information
fbeutin-ledger authored Nov 6, 2023
2 parents 16a87e7 + 790f6d1 commit fece8dc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/pr_on_all_plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ jobs:

steps:
- name: Checkout plugin repository
# TODO: remove restriction once finalized
if: matrix.repo == 'app-plugin-uniswap-test2'
uses: actions/checkout@v3
with:
repository: LedgerHQ/${{ matrix.repo }}
Expand All @@ -111,15 +109,11 @@ jobs:
persist-credentials: false

- name: Update submodule
# TODO: remove restriction once finalized
if: matrix.repo == 'app-plugin-uniswap-test2'
run: |
cd ethereum-plugin-sdk/
git checkout ${{ needs.get-sdk-ref.outputs.sdk_ref }}
- name: Commit changes
# TODO: remove restriction once finalized
if: matrix.repo == 'app-plugin-uniswap-test2'
id: commit-changes
run: |
# Set credentials for commit creation
Expand All @@ -137,25 +131,19 @@ jobs:
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
- name: Push commit
# TODO: remove restriction once finalized
if: matrix.repo == 'app-plugin-uniswap-test2'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.CI_BOT_TOKEN }}
branch: ${{ steps.commit-changes.outputs.branch_name }}
repository: LedgerHQ/${{ matrix.repo }}

- name: Create 'auto' label if missing
# TODO: remove restriction once finalized
if: matrix.repo == 'app-plugin-uniswap-test2'
run: |
if [[ -z $(gh label list --search auto) ]]; then
gh label create 'auto' --color 'b4a8d1' --description 'Automatically created'
fi
- name: Create pull request and commment on SDK issue
# TODO: remove restriction once finalized
if: matrix.repo == 'app-plugin-uniswap-test2'
run: |
# Create the PR with a placeholder body. Will be consolidated at a later step
pr_url=$(gh pr create \
Expand Down

0 comments on commit fece8dc

Please sign in to comment.