Skip to content

Make example config reachable through HTTP #492

Make example config reachable through HTTP

Make example config reachable through HTTP #492

name: Start tests of ladybug-frontend
on:
push:
jobs:
dispatch:
name: Start tests of ladybug-frontend
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get referenced front-end version
run: /bin/bash ./.github/workflows/getFrontendVersion.sh pom.xml frontendVersion.txt
- name: Capture referenced front-end version
id: get_frontendVersion
run: echo "::set-output name=frontendVersion::$(cat frontendVersion.txt)"
- name: Push repository_dispatch event to ladybug-frontend - no PR
uses: actions/github-script@v6
with:
github-token: ${{ secrets.CI_ACCESSTOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'wearefrank',
repo: 'ladybug-frontend',
workflow_id: 'testing.js.yml',
ref: 'master',
inputs: {
frontendCommitToCheckout: 'master',
backendCommitToCheckout: '${{ github.ref_name }}',
mergeMasterToBranch: 'true'
}
})