workflow-dispatch icon indicating copy to clipboard operation
workflow-dispatch copied to clipboard

GITHUB_TOKEN can be used

Open vavsab opened this issue 1 year ago • 3 comments

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 }}

vavsab avatar Sep 14 '22 11:09 vavsab

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... :)

fentonfentonfenton avatar Sep 15 '22 15:09 fentonfentonfenton

Wow, so recent change

vavsab avatar Sep 15 '22 15:09 vavsab

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

namoscato avatar Sep 17 '22 16:09 namoscato

Fixed in v1.2 and master

benc-uk avatar Oct 28 '22 14:10 benc-uk