Skip to content

test: first attemp to set up trigger workflows to build containers #1

test: first attemp to set up trigger workflows to build containers

test: first attemp to set up trigger workflows to build containers #1

# trigger-docker-fetchdata.yml
name: Trigger `ice-floe-tracker-pipeline` Docker build
on:
workflow_run:
workflows: [Build and PushContainer] # Name of GitHub workflow to trigger in target repository
types:
- completed
jobs:
trigger-docker-fetchdata:
if: github.event.workflow_run.conclusion == 'success' # Run only when workflow run has succeeded, i.e. all jobs have succeeded
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.TRIGGER_PAT }} # GitHub PAT that was saved as repository secret
script: |
await github.rest.actions.createworkflowDispatch({

Check failure on line 17 in .github/workflows/trigger-docker-fetchdata.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/trigger-docker-fetchdata.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
owner: 'WilhelmusLab',
repo: 'ice-floe-tracker-pipeline',
workflow_id: 'build-docker-fetchdata.yml',
ref: 'main'
})