Skip to content

Workflows getting canceled instead of waiting/pending #36935

@thijswassenaar

Description

@thijswassenaar

Description

Hi,

I'm trying currently facing an issue where i try to bulk some actions.
Actions are created but instantly canceled. the last one create will run.
i use the following api :

api/v1/repos/test/netbox-automation/actions/workflows/file.yaml/dispatches

with the following api calls:

{
    "ref": "master", 
    "inputs": {
      "name": dev_name,
      "ip":  ip_address,
      "port": port
    }
  }

This is my workflow:

name: NetBox - Add Device
run-name: "NetBox Add: ${{ inputs.name }} (${{ inputs.ip }}) - ${{ github.workflow }}"
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: gitea.wassenaar.cloud/wilroffreitsma/netbox-automation/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
Image

result:

Gitea Version

1.25.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker Container

Database

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions