-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi, there! At first, ensure that your workflow file is correctly named and placed in the .github/workflows directory of your repository. check if GitHub Actions are enabled for your repository and ensure that you have necessary permissions for this There are also Logs, so check them and keep up to date |
Beta Was this translation helpful? Give feedback.
-
also there might be some conflicts with GitHub action - check version and compatibility |
Beta Was this translation helpful? Give feedback.
-
It sounds like you’re having trouble with your GitHub Actions workflow not triggering on release events. Ensure your workflow file is located in the .github/workflows/ directory of your repository](https://github.com/orgs/community/discussions/54574)[1](https://github.com/orgs/community/discussions/54574). Correct Event Types: Verify that you are using the correct event types. [For releases, you should use created, published, or released as you have done] GitHub Actions Enabled: Make sure GitHub Actions is enabled for your repository1. Token Permissions: If you are using the default GITHUB_TOKEN, it might not trigger workflows for certain events. Try using a personal access token (PAT) instead32. Check Logs: Look at the “Actions” tab in your repository to see if there are any logs or errors that can give you more information1. Branch: Ensure that the workflow file is present on the default branch of your repository4. |
Beta Was this translation helpful? Give feedback.
-
I finally figured out what was the problem since I was creating release for existing tags which does not trigger the events. So, if you want your workflow to run on release creation, it's a good practice to create a new tag during the release process. This ensures that the published event is triggered and your workflow runs as expected. |
Beta Was this translation helpful? Give feedback.
I finally figured out what was the problem since I was creating release for existing tags which does not trigger the events.
Info from copilot:
Creating a new tag during the release process triggers the published event, which in turn triggers the workflow. When you use an existing tag, GitHub considers the release as published at the time the tag was initially created. Therefore, it doesn't trigger the published event again, and the workflow doesn't run.
So, if you want your workflow to run on release creation, it's a good practice to create a new tag during the release process. This ensures that the published event is triggered and your workflow runs as expected.