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

github/workflows: fix the release workflow #366

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

minh-bq
Copy link
Collaborator

@minh-bq minh-bq commented Oct 11, 2023

Currently, when publishing a new release using Github UI, we trigger 3 release workflows. It looks like that 3 action types: created, published, released trigger the workflow. This commit restricts the release workflow to run on published activity type only.

Reference:

Currently, when publishing a new release using Github UI, we trigger 3 release
workflows. It looks like that 3 action types: created, published, released
trigger the workflow. This commit restricts the release workflow to run on
published activity type only.

Reference:
- https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
- https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=published#release
@huyngopt1994
Copy link
Collaborator

@minh-bq Did u test by yourself?

@minh-bq
Copy link
Collaborator Author

minh-bq commented Oct 11, 2023

No, I didn't.
But look at the workflows that run on the last release in the Actions tab

https://github.com/axieinfinity/ronin/actions/runs/6418172180 -> published activity type
image

https://github.com/axieinfinity/ronin/actions/runs/6418172173 -> released activity type
image

https://github.com/axieinfinity/ronin/actions/runs/6418172163 -> created activity type
image

I did some edits on the description and trigger 1 more workflows
https://github.com/axieinfinity/ronin/actions/runs/6418179378 -> edited activity type
image

So I think restricting the published activity type works just fine.

@minh-bq minh-bq merged commit eebe749 into axieinfinity:master Oct 12, 2023
1 check passed
@minh-bq minh-bq deleted the fix/release-workflow branch October 12, 2023 10:07
andicrypt pushed a commit to andicrypt/ronin that referenced this pull request Nov 1, 2023
Currently, when publishing a new release using Github UI, we trigger 3 release
workflows. It looks like that 3 action types: created, published, released
trigger the workflow. This commit restricts the release workflow to run on
published activity type only.

Reference:
- https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
- https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=published#release
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

Successfully merging this pull request may close these issues.

3 participants