mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add github action to trigger metamask-desktop CI (#17977)
* chore: add action to trigger metamask-desktop ci We want to be able to trigger MetaMask Desktop CI whenever we are releasing the Extension (in this case, merging to master branch). This will allow the desktop team to easily identify whenever a breaking change (to the extension-desktop app pairing) is being released and address the issue within the desktop app in a timely manner * use double quotes ensure these get interpreted as single strings. Co-authored-by: Mark Stacey <markjstacey@gmail.com> --------- Co-authored-by: Mark Stacey <markjstacey@gmail.com>
This commit is contained in:
parent
8e9fe07648
commit
cd1a8270ab
33
.github/workflows/trigger-metamask-desktop-ci.yml
vendored
Normal file
33
.github/workflows/trigger-metamask-desktop-ci.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
name: Trigger MetaMask Desktop CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
- ready_for_review
|
||||
|
||||
jobs:
|
||||
trigger-desktop-ci:
|
||||
runs-on: ubuntu-latest
|
||||
environment: desktop
|
||||
if: ${{ (!github.event.pull_request.draft && startsWith(github.head_ref, 'Version-v')) || (!github.event.pull_request) }}
|
||||
steps:
|
||||
- name: Trigger MetaMask Desktop CI
|
||||
env:
|
||||
CI_TOKEN: ${{ secrets.DESKTOP_CI_TOKEN }}
|
||||
DESKTOP_CI_URL: ${{ secrets.DESKTOP_CI_URL }}
|
||||
EXTENSION_BRANCH: ${{ github.head_ref || github.event.base_ref }}
|
||||
DESKTOP_BRANCH: app-stable
|
||||
run: |
|
||||
echo "Extension branch - $EXTENSION_BRANCH"
|
||||
echo "Desktop branch - $DESKTOP_BRANCH"
|
||||
curl --request POST \
|
||||
--url "$DESKTOP_CI_URL" \
|
||||
--header "Circle-Token: $CI_TOKEN" \
|
||||
--header "content-type: application/json" \
|
||||
--data '{"branch":"main","parameters":{"extension-release":true,"extension-release-branch":"'"$EXTENSION_BRANCH"'","app-stable-branch":"'"$DESKTOP_BRANCH"'"}}'
|
Loading…
Reference in New Issue
Block a user