workflow_run for action trigger event #10905

Closed
opened 2025-11-02 09:21:46 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @wizpresso-steve-cy-fan on GitHub (May 24, 2023).

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

Originally created by @wizpresso-steve-cy-fan on GitHub (May 24, 2023). ### 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_
GiteaMirror added the topic/gitea-actionstype/proposaltype/feature labels 2025-11-02 09:21:46 -06:00
Author
Owner

@hakito commented on GitHub (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

@hakito commented on GitHub (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
Author
Owner

@ldt116 commented on GitHub (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

@ldt116 commented on GitHub (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
Author
Owner

@xxfogs commented on GitHub (Jan 20, 2025):

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

@xxfogs commented on GitHub (Jan 20, 2025): Is there a way to set-up such workflow dependent system now in Gitea using different configuration rules?
Author
Owner

@golyalpha commented on GitHub (Feb 16, 2025):

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

@golyalpha commented on GitHub (Feb 16, 2025): Seems `workflow_dispatch` has now been implemented, but `workflow_run` still has not...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10905