benc-uk / workflow-dispatch

A GitHub Action for triggering workflows, using the `workflow_dispatch` event
MIT License
327 stars 125 forks source link

GITHUB_TOKEN can be used #41

Closed vavsab closed 2 years ago

vavsab commented 2 years ago

GH token can be used to trigger workflows. Please update the docs. It's a bit misleading. Just checked that this works

- name: Invoke workflow without inputs
  uses: benc-uk/workflow-dispatch@v1
  with:
    workflow: CI
    token: ${{ secrets.GITHUB_TOKEN }}
fentonfentonfenton commented 2 years ago

https://github.blog/changelog/2022-09-08-github-actions-use-github_token-with-workflow_dispatch-and-repository_dispatch/

https://github.com/benc-uk/workflow-dispatch/pull/43

I've tested this and it's working... :)

vavsab commented 2 years ago

Wow, so recent change

namoscato commented 2 years ago

https://github.com/benc-uk/workflow-dispatch/pull/44 additionally adds a token input default, making it optional 😄

benc-uk commented 2 years ago

Fixed in v1.2 and master