Skip to content

Merge pull request #59 from Hiroaki-Masuzawa/add_sync_oneshot #62

Merge pull request #59 from Hiroaki-Masuzawa/add_sync_oneshot

Merge pull request #59 from Hiroaki-Masuzawa/add_sync_oneshot #62

Workflow file for this run

name: Dispatch
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
build:
runs-on: self-hosted
# runs-on: ubuntu-latest
steps:
- run: echo "🚩 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Dispatch
env:
GITHUB_TOKEN: ${{ secrets.IRSL_PAT_CLS }}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.IRSL_PAT_CLS }}
script: |
github.rest.actions.createWorkflowDispatch({
owner: 'IRSL-tut',
repo: 'irsl_docker_irsl_system',
ref: 'main',
workflow_id: 'build-irsl-system.yaml',
inputs: {
event_type: 'build_all',
source: 'irsl_choreonoid_ros',
hash: '${{ github.sha }}'
}
})