Skip to content

release published trigger #59

Open
@tcurdt

Description

@tcurdt

I want to trigger another workflow when the release has been published

on:
  release:
    types: [published]

Looking at the code I am not sure, but it looks like this might cause a race condition with the file upload.

Does the release maybe have to be drafted, files uploaded and then published for this to work?
I could not find clear documentation on this.

Activity

tcurdt

tcurdt commented on Sep 21, 2020

@tcurdt
Author

ATM I wish for a race condition :-D

Right now it's not triggering other workflows at all for me.
Is that a known issue?

tcurdt

tcurdt commented on Sep 21, 2020

@tcurdt
Author

It only triggers when the Personal Access Token is used instead of the standard Github Token.

TheBestMoshe

TheBestMoshe commented on Oct 16, 2020

@TheBestMoshe
minhdanh

minhdanh commented on Sep 18, 2022

@minhdanh

For anyone looking to trigger another workflow with release.published event:

  • Try to create a new Personal Access Token with just workflow permission
  • Then in your workflow:
- name: Release
        uses: softprops/action-gh-release@v1
        if: startsWith(github.ref, 'refs/tags/')
        with:
          token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
added a commit that references this issue on Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @tcurdt@minhdanh@sensuikan1973@TheBestMoshe

      Issue actions

        release published trigger · Issue #59 · softprops/action-gh-release