Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable PR on all plugins workflow for all plugins #487

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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