From 12c4ee47288e724a72684cb09f6b130b420cc60f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Mon, 2 Oct 2023 16:18:21 +0200 Subject: [PATCH] Revert "chore: fix running external workflows" This reverts commit 70c70131bcaf04a673d1ff47d84faf5ad4219669. --- .github/workflows/publish.yml | 30 ++++++++++++++++++++---------- .github/workflows/snjs.pr.yml | 30 ++++++++++++++++++++---------- 2 files changed, 40 insertions(+), 20 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f27b8edcf..2acde8ef9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -72,12 +72,17 @@ jobs: steps: - name: Run E2E base test suite if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}" - uses: standardnotes/server/.github/workflows/e2e-test-suite.yml@main + uses: convictional/trigger-workflow-and-wait@master with: - snjs_image_tag: ${{ github.sha }} - suite: base - author: ${{ github.actor }} - ref_name: "app:${{ github.ref }}" + owner: standardnotes + repo: server + github_token: ${{ secrets.CI_PAT_TOKEN }} + workflow_file_name: e2e-test-suite.yml + wait_interval: 30 + client_payload: '{"snjs_image_tag": "${{ github.sha }}", "suite": "base", "author": "${{ github.actor }}", "ref_name": "app:${{ github.ref }}"}' + propagate_failure: true + trigger_workflow: true + wait_workflow: true e2e-vaults: name: E2E Vaults Test Suite @@ -86,12 +91,17 @@ jobs: steps: - name: Run E2E vaults test suite if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}" - uses: standardnotes/server/.github/workflows/e2e-test-suite.yml@main + uses: convictional/trigger-workflow-and-wait@master with: - snjs_image_tag: ${{ github.sha }} - suite: vaults - author: ${{ github.actor }} - ref_name: "app:${{ github.ref }}" + owner: standardnotes + repo: server + github_token: ${{ secrets.CI_PAT_TOKEN }} + workflow_file_name: e2e-test-suite.yml + wait_interval: 30 + client_payload: '{"snjs_image_tag": "${{ github.sha }}", "suite": "vaults", "author": "${{ github.actor }}", "ref_name": "app:${{ github.ref }}"}' + propagate_failure: true + trigger_workflow: true + wait_workflow: true publish: name: Publish to NPM diff --git a/.github/workflows/snjs.pr.yml b/.github/workflows/snjs.pr.yml index 79ac20e3b..b53f178c3 100644 --- a/.github/workflows/snjs.pr.yml +++ b/.github/workflows/snjs.pr.yml @@ -79,12 +79,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Run E2E test suite - uses: standardnotes/server/.github/workflows/e2e-test-suite.yml@main + uses: convictional/trigger-workflow-and-wait@master with: - snjs_image_tag: ${{ github.sha }} - suite: base - author: ${{ github.actor }} - ref_name: "app:${{ github.ref }}" + owner: standardnotes + repo: server + github_token: ${{ secrets.CI_PAT_TOKEN }} + workflow_file_name: e2e-test-suite.yml + wait_interval: 30 + client_payload: '{"snjs_image_tag": "${{ github.sha }}", "suite": "base", "author": "${{ github.actor }}", "ref_name": "app:${{ github.ref }}"}' + propagate_failure: true + trigger_workflow: true + wait_workflow: true e2e-vaults: name: E2E Vaults Test Suite @@ -92,9 +97,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Run E2E vaults test suite - uses: standardnotes/server/.github/workflows/e2e-test-suite.yml@main + uses: convictional/trigger-workflow-and-wait@master with: - snjs_image_tag: ${{ github.sha }} - suite: vaults - author: ${{ github.actor }} - ref_name: "app:${{ github.ref }}" + owner: standardnotes + repo: server + github_token: ${{ secrets.CI_PAT_TOKEN }} + workflow_file_name: e2e-test-suite.yml + wait_interval: 30 + client_payload: '{"snjs_image_tag": "${{ github.sha }}", "suite": "vaults", "author": "${{ github.actor }}", "ref_name": "app:${{ github.ref }}"}' + propagate_failure: true + trigger_workflow: true + wait_workflow: true