From 9081a1956bfaf9b766615638bdf31aae100c6933 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 17:17:37 +0700 Subject: [PATCH 01/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index b0966aff..4af79197 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -2,8 +2,6 @@ name: POC Trigger Target Workflow on: workflow_dispatch: - release: - types: [ published ] jobs: trigger: @@ -14,9 +12,27 @@ jobs: uses: actions/checkout@v4 with: show-progress: false + path: current - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJson(github) }} + - name: Checkout to Plasma Web + uses: actions/checkout@v4 + with: + repository: Yakutoc/plasma-dev-stage + ref: master + show-progress: false + path: web + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: 'web/.nvmrc' + cache: 'npm' + cache-dependency-path: 'web/package-lock.json' + + - name: Generate android icons run: | - echo "$GITHUB_CONTEXT" + cd web/packages/plasma-icons + npm ci + npm run generate:android + ls android-icons + From 8644cf324868bcfd341ae6054cd96a4f24b5e81a Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 17:19:40 +0700 Subject: [PATCH 02/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 4af79197..959e5e71 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v4 with: repository: Yakutoc/plasma-dev-stage - ref: master + ref: dev show-progress: false path: web @@ -32,7 +32,6 @@ jobs: - name: Generate android icons run: | cd web/packages/plasma-icons - npm ci - npm run generate:android - ls android-icons + ls + From 46c80d82cc5c4ec32de3f0f99f2e17f0519f33b2 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 17:22:23 +0700 Subject: [PATCH 03/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 959e5e71..a802cd26 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -22,16 +22,17 @@ jobs: show-progress: false path: web - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version-file: 'web/.nvmrc' - cache: 'npm' - cache-dependency-path: 'web/package-lock.json' + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: 'web/.nvmrc' + cache: 'npm' - name: Generate android icons run: | cd web/packages/plasma-icons ls - + npm ci + npm run generate:android + ls android-icons From 36c3ecb7ee7e11615eb6650fc36810295ce727c8 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 17:23:29 +0700 Subject: [PATCH 04/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index a802cd26..1529c2b5 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -27,6 +27,7 @@ jobs: with: node-version-file: 'web/.nvmrc' cache: 'npm' + cache-dependency-path: 'web/package-lock.json' - name: Generate android icons run: | From cb1d2bf1bf4b6818542274e303c4aa3b5e1f3583 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 17:25:12 +0700 Subject: [PATCH 05/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 1529c2b5..a789d822 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -29,6 +29,11 @@ jobs: cache: 'npm' cache-dependency-path: 'web/package-lock.json' + - name: Bootstrap web + run: | + cd web + npm ci + - name: Generate android icons run: | cd web/packages/plasma-icons From 11e40438950a3374ab9ace5af6b24245765e357a Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 17:31:06 +0700 Subject: [PATCH 06/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index a789d822..63f71c92 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -32,13 +32,6 @@ jobs: - name: Bootstrap web run: | cd web - npm ci - - - name: Generate android icons - run: | - cd web/packages/plasma-icons - ls npm ci - npm run generate:android - ls android-icons - + npm ci --prefix="web/packages/plasma-icons" + npm run generate:android --prefix="web/packages/plasma-icons" From 61080874fac833f6e123fab1f2b0d229938e43f4 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 17:33:14 +0700 Subject: [PATCH 07/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 63f71c92..a6811d82 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -17,7 +17,7 @@ jobs: - name: Checkout to Plasma Web uses: actions/checkout@v4 with: - repository: Yakutoc/plasma-dev-stage + repository: salute-developers/plasma ref: dev show-progress: false path: web From 60136f78af970f9dd907747b69622488cf59e303 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 17:38:05 +0700 Subject: [PATCH 08/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index a6811d82..556267b6 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -20,18 +20,20 @@ jobs: repository: salute-developers/plasma ref: dev show-progress: false - path: web + path: plasma - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version-file: 'web/.nvmrc' - cache: 'npm' - cache-dependency-path: 'web/package-lock.json' + node-version-file: 'plasma/.nvmrc' - name: Bootstrap web run: | - cd web + cd plasma npm ci - npm ci --prefix="web/packages/plasma-icons" - npm run generate:android --prefix="web/packages/plasma-icons" + + - name: Gen + run: | + cd plasma/packages/plasma-icons + npm i + npm run generate:android From 8a025a9f5a2ac77ffa0b3df589bcdbdced757002 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 17:51:34 +0700 Subject: [PATCH 09/36] ci: run 1 [no ci] --- .github/workflows/subscribe.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/subscribe.yml diff --git a/.github/workflows/subscribe.yml b/.github/workflows/subscribe.yml new file mode 100644 index 00000000..24caad22 --- /dev/null +++ b/.github/workflows/subscribe.yml @@ -0,0 +1,14 @@ +name: Subscribe workflow to custom event + +on: + repository_dispatch: + types: [plasma-trigger] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + run: | + echo ${{ github.event.client_payload }} From 61242f65236f8261a0572a97a4c36956ba22669f Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 17:57:06 +0700 Subject: [PATCH 10/36] ci: run 1 [no ci] --- .github/workflows/subscribe.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/subscribe.yml b/.github/workflows/subscribe.yml index 24caad22..80823aee 100644 --- a/.github/workflows/subscribe.yml +++ b/.github/workflows/subscribe.yml @@ -10,5 +10,7 @@ jobs: steps: - name: Checkout code + env: + DATA: toJSON(github.event.client_payload) run: | - echo ${{ github.event.client_payload }} + echo "$DATA" From 09255f309181734cff98886c6c9dd60bede3ddf6 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 17:59:47 +0700 Subject: [PATCH 11/36] ci: run 1 [no ci] --- .github/workflows/subscribe.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/subscribe.yml b/.github/workflows/subscribe.yml index 80823aee..2e883e24 100644 --- a/.github/workflows/subscribe.yml +++ b/.github/workflows/subscribe.yml @@ -11,6 +11,6 @@ jobs: steps: - name: Checkout code env: - DATA: toJSON(github.event.client_payload) + DATA: ${{ toJSON(github.event.client_payload) }} run: | echo "$DATA" From 3986941ffb4b971d93ceb6ad3f93652b7373616d Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:04:22 +0700 Subject: [PATCH 12/36] ci: run 1 [no ci] --- .github/workflows/subscribe.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/subscribe.yml b/.github/workflows/subscribe.yml index 2e883e24..2152401f 100644 --- a/.github/workflows/subscribe.yml +++ b/.github/workflows/subscribe.yml @@ -1,8 +1,8 @@ -name: Subscribe workflow to custom event +name: Subscribe to custom event on: repository_dispatch: - types: [plasma-trigger] + types: [plasma-released] jobs: build: From 988390b3eb6d52b157cd0e1ea12997727af8cb65 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:07:15 +0700 Subject: [PATCH 13/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 556267b6..8f430ce0 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -32,8 +32,15 @@ jobs: cd plasma npm ci - - name: Gen + - name: Generate android icons run: | cd plasma/packages/plasma-icons npm i - npm run generate:android + npm run generate:android + + - name: Mv to dir + run: | + cp plasma/packages/plasma-icons/android-icons current/android-icons + ls current/android-icons + + From 2fed3716b33532f823f31beb8628819e167892a8 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:15:47 +0700 Subject: [PATCH 14/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 8f430ce0..afe5bfc9 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -40,7 +40,7 @@ jobs: - name: Mv to dir run: | - cp plasma/packages/plasma-icons/android-icons current/android-icons + cp -r plasma/packages/plasma-icons/android-icons/. current/android-icons/ ls current/android-icons From 63f1bfcb1d086b1815c91806ea2390906424a473 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:19:40 +0700 Subject: [PATCH 15/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index afe5bfc9..2bbbfa1a 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -27,14 +27,10 @@ jobs: with: node-version-file: 'plasma/.nvmrc' - - name: Bootstrap web - run: | - cd plasma - npm ci - - name: Generate android icons run: | cd plasma/packages/plasma-icons + nvm use npm i npm run generate:android From 11fa4b8ba1baa4a33838d48b5b10d6b3a9ed9ad5 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:19:47 +0700 Subject: [PATCH 16/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 2bbbfa1a..09a63c5b 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -31,7 +31,7 @@ jobs: run: | cd plasma/packages/plasma-icons nvm use - npm i + npm ci npm run generate:android - name: Mv to dir From 14326d8bdb8fda33fcc7cab5e13311e0c4f2a2fd Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:20:53 +0700 Subject: [PATCH 17/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 09a63c5b..93d48a04 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -30,7 +30,7 @@ jobs: - name: Generate android icons run: | cd plasma/packages/plasma-icons - nvm use + node -v npm ci npm run generate:android From 1ae6815718c8fabe0e0bc1d941135f26a668875c Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:23:16 +0700 Subject: [PATCH 18/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 93d48a04..0654762b 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -27,10 +27,14 @@ jobs: with: node-version-file: 'plasma/.nvmrc' + - name: Bootstrap web + run: | + cd plasma + npm ci + - name: Generate android icons run: | cd plasma/packages/plasma-icons - node -v npm ci npm run generate:android From 1923e64b415b9f7571fd9e950004cc25ae769e2e Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:26:05 +0700 Subject: [PATCH 19/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 0654762b..9aa30565 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -35,12 +35,7 @@ jobs: - name: Generate android icons run: | cd plasma/packages/plasma-icons - npm ci - npm run generate:android - - - name: Mv to dir - run: | - cp -r plasma/packages/plasma-icons/android-icons/. current/android-icons/ - ls current/android-icons + ls -a + cat package-lock.json From dc8069b3ef2ef23cf8cb275adf8ac7d0071444fc Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:30:24 +0700 Subject: [PATCH 20/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 9aa30565..4648fc13 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -35,7 +35,6 @@ jobs: - name: Generate android icons run: | cd plasma/packages/plasma-icons - ls -a - cat package-lock.json + npm ci legacy-peer-deps=true From 776a3a4e5d8e9c4b96621f9e0c5dc0c7391447bf Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:33:16 +0700 Subject: [PATCH 21/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 4648fc13..78e1a501 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -23,7 +23,7 @@ jobs: path: plasma - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v3 with: node-version-file: 'plasma/.nvmrc' @@ -35,6 +35,6 @@ jobs: - name: Generate android icons run: | cd plasma/packages/plasma-icons - npm ci legacy-peer-deps=true + npm ci From ad2c7f858871092208eb4059c302c77b80871744 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:35:32 +0700 Subject: [PATCH 22/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 78e1a501..82511ad8 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -34,7 +34,6 @@ jobs: - name: Generate android icons run: | - cd plasma/packages/plasma-icons - npm ci + npx lerna bootstrap --scope="@salutejs/plasma-icons" From db68784b3e1e093e4f17573ecd0699d131aefa38 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:37:13 +0700 Subject: [PATCH 23/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 82511ad8..55e1f382 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -34,6 +34,7 @@ jobs: - name: Generate android icons run: | + cd plasma npx lerna bootstrap --scope="@salutejs/plasma-icons" From 2d252cb379682ffe3d0e74e940c446956e42448a Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:41:09 +0700 Subject: [PATCH 24/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 55e1f382..63223d2b 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -35,6 +35,6 @@ jobs: - name: Generate android icons run: | cd plasma - npx lerna bootstrap --scope="@salutejs/plasma-icons" + npm ci --prefix="packages/plasma-icons" From 967856fffe70c36aa1af53963fb7a59699d01ab3 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:43:54 +0700 Subject: [PATCH 25/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 63223d2b..dbd603d9 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -35,6 +35,12 @@ jobs: - name: Generate android icons run: | cd plasma - npm ci --prefix="packages/plasma-icons" + npx lerna bootstrap --scope="@salutejs/plasma-icons" + npm run generate:android --prefix="packages/plasma-icons" + + - name: Mv to dir + run: | + cp -r plasma/packages/plasma-icons/android-icons/. current/android-icons/ + ls current/android-icons From 660f52f3b3b37973419688031f7664c24a45e8dc Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Tue, 19 Mar 2024 18:46:53 +0700 Subject: [PATCH 26/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index dbd603d9..542b1142 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -35,7 +35,7 @@ jobs: - name: Generate android icons run: | cd plasma - npx lerna bootstrap --scope="@salutejs/plasma-icons" + npx lerna bootstrap --scope="@salutejs/plasma-icons" --ignore-scripts npm run generate:android --prefix="packages/plasma-icons" - name: Mv to dir From e60b4123bc8289c6c42fe8dfcddfb29219b35e22 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Wed, 20 Mar 2024 17:41:21 +0700 Subject: [PATCH 27/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 52 +++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 19 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 542b1142..5234c347 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -4,23 +4,17 @@ on: workflow_dispatch: jobs: - trigger: + generate: runs-on: ubuntu-latest - + outputs: + url: ${{ steps.android-icons.outputs.artifact-url }} steps: - - name: Checkout - uses: actions/checkout@v4 - with: - show-progress: false - path: current - - name: Checkout to Plasma Web uses: actions/checkout@v4 with: repository: salute-developers/plasma ref: dev show-progress: false - path: plasma - name: Setup Node.js uses: actions/setup-node@v3 @@ -28,19 +22,39 @@ jobs: node-version-file: 'plasma/.nvmrc' - name: Bootstrap web - run: | - cd plasma - npm ci + run: npm ci - name: Generate android icons run: | - cd plasma - npx lerna bootstrap --scope="@salutejs/plasma-icons" --ignore-scripts + npm ci --prefix="packages/plasma-icons" npm run generate:android --prefix="packages/plasma-icons" - - name: Mv to dir - run: | - cp -r plasma/packages/plasma-icons/android-icons/. current/android-icons/ - ls current/android-icons - + - name: Save android icons + id: android-icons + uses: actions/upload-artifact@v4.1.0 + with: + name: android-icons.zip + path: packages/plasma-icons/archives/android-icons.zip + + + download: + needs: [generate] + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + show-progress: false + + - name: Download android icons + uses: actions/download-artifact@v4.1.0 + with: + name: android-icons.zip + + - name: LS + run: | + ls + + From 2e0f8ff09065abbb14ba3712b10a5f086ae55e51 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Wed, 20 Mar 2024 17:48:00 +0700 Subject: [PATCH 28/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 5234c347..3c977afb 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version-file: 'plasma/.nvmrc' + node-version-file: '.nvmrc' - name: Bootstrap web run: npm ci @@ -35,8 +35,6 @@ jobs: with: name: android-icons.zip path: packages/plasma-icons/archives/android-icons.zip - - download: needs: [generate] From 681210745ba9045643842a2de751e428c13a17d7 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Wed, 20 Mar 2024 17:50:21 +0700 Subject: [PATCH 29/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 3c977afb..87239b8f 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -26,7 +26,7 @@ jobs: - name: Generate android icons run: | - npm ci --prefix="packages/plasma-icons" + npx lerna bootstrap --scope="@salutejs/plasma-icons" npm run generate:android --prefix="packages/plasma-icons" - name: Save android icons From 9e08d5bef9f2f5956ca8fe7917f681d20c045353 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Wed, 20 Mar 2024 17:56:16 +0700 Subject: [PATCH 30/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 87239b8f..758587b7 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -26,7 +26,7 @@ jobs: - name: Generate android icons run: | - npx lerna bootstrap --scope="@salutejs/plasma-icons" + npx lerna bootstrap --ignore-scripts --scope="@salutejs/plasma-icons" npm run generate:android --prefix="packages/plasma-icons" - name: Save android icons @@ -53,6 +53,7 @@ jobs: - name: LS run: | + 7z x android-icons.zip.zip ls From 0c98ccedc68a95ff66d9c065643349cd885c69e8 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Wed, 20 Mar 2024 19:10:53 +0700 Subject: [PATCH 31/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 758587b7..b5e3c44e 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -2,6 +2,8 @@ name: POC Trigger Target Workflow on: workflow_dispatch: + repository_dispatch: + types: [plasma-released] jobs: generate: @@ -13,7 +15,7 @@ jobs: uses: actions/checkout@v4 with: repository: salute-developers/plasma - ref: dev + ref: ${{ fromJSON(github.event.client_payload).ref || dev }} show-progress: false - name: Setup Node.js @@ -33,7 +35,7 @@ jobs: id: android-icons uses: actions/upload-artifact@v4.1.0 with: - name: android-icons.zip + name: android-icons-${{ fromJSON(github.event.client_payload).ref || dev }}.zip path: packages/plasma-icons/archives/android-icons.zip download: @@ -51,9 +53,4 @@ jobs: with: name: android-icons.zip - - name: LS - run: | - 7z x android-icons.zip.zip - ls - From eba2a2b68d02e9a6f7af3857bd9f3002e4d7c3d5 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Thu, 21 Mar 2024 12:59:26 +0700 Subject: [PATCH 32/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index b5e3c44e..e93c71ab 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -1,11 +1,33 @@ -name: POC Trigger Target Workflow +name: POC Trigger workflow on: workflow_dispatch: - repository_dispatch: - types: [plasma-released] + workflow_run: + workflows: [ "Check" ] + branches: [ dev ] + types: + - completed jobs: + get: + runs-on: ubuntu-latest + steps: + - name: Checkout to Plasma Web + uses: actions/checkout@v4 + with: + repository: salute-developers/plasma + show-progress: false + + - name: Dumb + env: + DATA: ${{ toJSON(github.event) }} + run: | + echo "$DATA" + + - name: Get release info + run: | + echo "" + generate: runs-on: ubuntu-latest outputs: From 87977f6488468db439c298524ab99f0e9d95ecc0 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Thu, 21 Mar 2024 13:03:34 +0700 Subject: [PATCH 33/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index e93c71ab..2c017e54 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -15,7 +15,6 @@ jobs: - name: Checkout to Plasma Web uses: actions/checkout@v4 with: - repository: salute-developers/plasma show-progress: false - name: Dumb @@ -26,7 +25,7 @@ jobs: - name: Get release info run: | - echo "" + echo "${{ github.event.workflow_run.head_commit.message }}" generate: runs-on: ubuntu-latest From caaf34fe870aefc4d2c37d017be21dc2dd92d20d Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Thu, 21 Mar 2024 13:04:45 +0700 Subject: [PATCH 34/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 2c017e54..d07b653a 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -3,7 +3,7 @@ name: POC Trigger workflow on: workflow_dispatch: workflow_run: - workflows: [ "Check" ] + workflows: [ "Sharing data" ] branches: [ dev ] types: - completed From e096c6548c85a56b09e52f075f082ab32c17dff6 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Thu, 21 Mar 2024 13:07:13 +0700 Subject: [PATCH 35/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index d07b653a..bb33127c 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -36,7 +36,7 @@ jobs: uses: actions/checkout@v4 with: repository: salute-developers/plasma - ref: ${{ fromJSON(github.event.client_payload).ref || dev }} + ref: ${{ fromJSON(github.event.client_payload).ref || 'dev' }} show-progress: false - name: Setup Node.js @@ -56,7 +56,7 @@ jobs: id: android-icons uses: actions/upload-artifact@v4.1.0 with: - name: android-icons-${{ fromJSON(github.event.client_payload).ref || dev }}.zip + name: android-icons-${{ fromJSON(github.event.client_payload).ref || 'dev' }}.zip path: packages/plasma-icons/archives/android-icons.zip download: From dc76d46e8681e795ed202d0e2a4a3d600f6a4693 Mon Sep 17 00:00:00 2001 From: Alexander Lobyntsev Date: Thu, 21 Mar 2024 13:11:28 +0700 Subject: [PATCH 36/36] ci: run 1 [no ci] --- .github/workflows/dispatch.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index bb33127c..9df2b308 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -29,6 +29,7 @@ jobs: generate: runs-on: ubuntu-latest + if: ${{ fromJSON(false) }} outputs: url: ${{ steps.android-icons.outputs.artifact-url }} steps: