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
[BUG] Keep the same commit SHA between workflows #543
Labels
bug
Something isn't working
Comments
Thanks for reporting this issue, don't forget to star this project to help us reach a wider audience. |
@rlinstorres Can you also include the event that triggers the workflow in your description. Example on:
...
jobs:
job:
name: Job
runs-on: self-hosted-runner
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Modified Files
uses: tj-actions/changed-files@v23.1
with:
files: .github/workflows/test.txt |
Hi @jackton1, for sure, sorry!
on:
push:
branches:
- master
workflow_dispatch:
on:
workflow_run:
workflows: [first-workflow]
types: [completed]
branches:
- master
workflow_dispatch: |
@rlinstorres This should be resolved in the latest release v23.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
Hi, first of all, I am not sure if it is a bug or an improvement.
I have a workflow triggered by
push
events and the result of this workflow is triggering another workflow byworkflow_run
. The problem is in my second workflow when triggered thebase_sha
value is not keeping the same value as the first workflow.Note: It's happening when I have more than one PR merged into the master branch sequentially.
First workflow:
Second workflow:
To Reproduce
For example:
First PR merged and first workflow:
Commit SHA:
4304a00cd43101d81d49b9ce277459267c446a5d
Base commit SHA:
8668dbc37408aafb315621ee66bdb154bfafc1ce
Second workflow triggered from the first workflow:
Commit SHA:
4304a00cd43101d81d49b9ce277459267c446a5d
Base commit SHA:
4304a00cd43101d81d49b9ce277459267c446a5d
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
I would like to keep the same
base_sha
value when working withworkflow_run
as a trigger.Relevant log output
No response
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: