chore: fix running external workflows

This commit is contained in:
Karol Sójko
2023-10-02 15:09:44 +02:00
parent 1d97800d3b
commit 70c70131bc
2 changed files with 20 additions and 40 deletions

View File

@@ -72,17 +72,12 @@ jobs:
steps:
- name: Run E2E base test suite
if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}"
uses: convictional/trigger-workflow-and-wait@master
uses: standardnotes/server/.github/workflows/e2e-test-suite.yml@main
with:
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
snjs_image_tag: ${{ github.sha }}
suite: base
author: ${{ github.actor }}
ref_name: "app:${{ github.ref }}"
e2e-vaults:
name: E2E Vaults Test Suite
@@ -91,17 +86,12 @@ jobs:
steps:
- name: Run E2E vaults test suite
if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}"
uses: convictional/trigger-workflow-and-wait@master
uses: standardnotes/server/.github/workflows/e2e-test-suite.yml@main
with:
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
snjs_image_tag: ${{ github.sha }}
suite: vaults
author: ${{ github.actor }}
ref_name: "app:${{ github.ref }}"
publish:
name: Publish to NPM

View File

@@ -79,17 +79,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Run E2E test suite
uses: convictional/trigger-workflow-and-wait@master
uses: standardnotes/server/.github/workflows/e2e-test-suite.yml@main
with:
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
snjs_image_tag: ${{ github.sha }}
suite: base
author: ${{ github.actor }}
ref_name: "app:${{ github.ref }}"
e2e-vaults:
name: E2E Vaults Test Suite
@@ -97,14 +92,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Run E2E vaults test suite
uses: convictional/trigger-workflow-and-wait@master
uses: standardnotes/server/.github/workflows/e2e-test-suite.yml@main
with:
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
snjs_image_tag: ${{ github.sha }}
suite: vaults
author: ${{ github.actor }}
ref_name: "app:${{ github.ref }}"