Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release published trigger #59

Open
tcurdt opened this issue Sep 18, 2020 · 5 comments
Open

release published trigger #59

tcurdt opened this issue Sep 18, 2020 · 5 comments

Comments

@tcurdt
Copy link

tcurdt commented Sep 18, 2020

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.

@tcurdt
Copy link
Author

tcurdt commented Sep 20, 2020

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
Copy link
Author

tcurdt commented Sep 21, 2020

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

@TheBestMoshe
Copy link

This might help someone

https://stackoverflow.com/a/60418414/9642772

@minhdanh
Copy link

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

sensuikan1973 added a commit to sensuikan1973/pedax that referenced this issue Dec 4, 2022
sensuikan1973 added a commit to sensuikan1973/pedax that referenced this issue Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants