Hi,
I’m running into a problem that i can’t find the solution for.
i got a workflow:
name: NetBox - Add Device run-name: "NetBox Add: ${{ inputs.name }} (${{ inputs.ip }})" on: workflow_dispatch: inputs: name: description: 'Device Name' required: true ip: description: 'Device IP' required: true port: description: 'SSH Port' required: true jobs: add_to_netbox: runs-on: debian-latest container: image: urlfor/test/netbox-run/netbox-runner:latest steps: - name: Checkout uses: actions/checkout@v4 - name: Run NetBox Add Device env: NETBOX_URL: ${{ secrets.NETBOX_URL }} NETBOX_TOKEN: ${{ secrets.NETBOX_TOKEN }} DEV_NAME: ${{ github.event.inputs.name }} DEV_IP: ${{ github.event.inputs.ip }} DEV_PORT: ${{ github.event.inputs.port }} run: | # pynetbox is already pre-installed in the image! python3 netbox_scripts/add_device.py
when i run multiple posts to the api like this:
URL/api/v1/repos/test/netbox-automation/actions/workflows/netbox%2fadd_device.yaml/dispatches
call 1
{
"ref": "master",
"inputs": {
"name": "FW01",
"ip": "15.15.15.15",
"port": "22"
}
}
call 2
{
“ref”: “master”,
“inputs”: {
“name”: “FW02”,
“ip”: “16.15.15.15”,
“port”: “22”
}
}
the first one gets canceled and the last one is finished.
any idead how to fix this?