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

workflow_run for action trigger event #24898

Open
wizpresso-steve-cy-fan opened this issue May 24, 2023 · 4 comments · May be fixed by #33964
Open

workflow_run for action trigger event #24898

wizpresso-steve-cy-fan opened this issue May 24, 2023 · 4 comments · May be fixed by #33964
Labels
topic/gitea-actions related to the actions of Gitea type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@wizpresso-steve-cy-fan
Copy link

Feature Description

This event occurs when a workflow run is requested or completed. It allows you to execute a workflow based on execution or completion of another workflow. The workflow started by the workflow_run event is able to access secrets and write tokens, even if the previous workflow was not. This is useful in cases where the previous workflow is intentionally not privileged, but you need to take a privileged action in a later workflow.

In this example, a workflow is configured to run after the separate "Run Tests" workflow completes.

on:
  workflow_run:
    workflows: [Run Tests]
    types:
      - completed

See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run

Screenshots

No response

@wizpresso-steve-cy-fan wizpresso-steve-cy-fan added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels May 24, 2023
@lunny lunny added the topic/gitea-actions related to the actions of Gitea label May 24, 2023
@hakito
Copy link
Contributor

hakito commented Dec 20, 2023

Could this be documented on the website? It only lists workflow_dispatch as unsupported.

I would have added instead of asking. But I could not find where to contribute to the website. I only found a link from the archived version on github to https://gitea.com/gitea/website - but this is also archived

@ldt116
Copy link

ldt116 commented Oct 13, 2024

Could this be documented on the website? It only lists workflow_dispatch as unsupported.

I would have added instead of asking. But I could not find where to contribute to the website. I only found a link from the archived version on github to https://gitea.com/gitea/website - but this is also archived

I think the new repo is https://gitea.com/gitea/docs

Maybe this https://gitea.com/gitea/docs/src/branch/main/docs/usage/actions/comparison.md

@xxfogs
Copy link

xxfogs commented Jan 20, 2025

Is there a way to set-up such workflow dependent system now in Gitea using different configuration rules?

@golyalpha
Copy link

Seems workflow_dispatch has now been implemented, but workflow_run still has not...

@ChristopherHX ChristopherHX linked a pull request Mar 21, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/gitea-actions related to the actions of Gitea type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants