You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two workflows (test-push-workflow.yml, test-pull_request-workflow.yml), one triggers on push events and the other trigger on pull_request events. When providing a sample pull_request event json, the workflow that triggers on the push event is executed, NOT the one that triggers on pull_request. However, If I remove the test-push-workflow.yml from the .github/workflows dir, then test-pull_request-workflow.yml is triggered with the correct pull_request event!.
Link to GitHub repository
No response
Workflow content
name: test pull_request workflowon:
pull_request:
types: [opened, synchronize, reopened, closed]branches:
- 'main'jobs:
debug_input_:
runs-on: 'ubuntu-latest'steps:
- name: Check the inputssrun: echo "The event that triggered this workflow is ${{ github.event_name }}"
Relevant log output
[admin@localhost test-github-events]$ act --bind -e event_pr_open_simple.json --secret-file .env-dev
INFO[0000] Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock'
WARN[0000] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/admin/Projects/test-github-events): remote not found
WARN[0000] unable to get git ref: reference not found
WARN[0000] unable to get git revision: reference not found
[test push workflow/debug_input__] 🚀 Start image=catthehacker/ubuntu:act-latest
[test push workflow/debug_input__] 🐳 docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[test push workflow/debug_input__] 🐳 docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail""-f""/dev/null"] cmd=[] network="host"
[test push workflow/debug_input__] 🐳 docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail""-f""/dev/null"] cmd=[] network="host"
[test push workflow/debug_input__] 🐳 docker exec cmd=[node --no-warnings -e console.log(process.execPath)] user= workdir=
[test push workflow/debug_input__] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/admin/Projects/test-github-events): remote not found
[test push workflow/debug_input__] unable to get git ref: reference not found
[test push workflow/debug_input__] unable to get git revision: reference not found
[test push workflow/debug_input__] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/admin/Projects/test-github-events): remote not found
[test push workflow/debug_input__] unable to get git ref: reference not found
[test push workflow/debug_input__] unable to get git revision: reference not found
[test push workflow/debug_input__] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/admin/Projects/test-github-events): remote not found
[test push workflow/debug_input__] unable to get git ref: reference not found
[test push workflow/debug_input__] unable to get git revision: reference not found
[test push workflow/debug_input__] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/admin/Projects/test-github-events): remote not found
[test push workflow/debug_input__] unable to get git ref: reference not found
[test push workflow/debug_input__] unable to get git revision: reference not found
[test push workflow/debug_input__] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/admin/Projects/test-github-events): remote not found
[test push workflow/debug_input__] unable to get git ref: reference not found
[test push workflow/debug_input__] unable to get git revision: reference not found
[test push workflow/debug_input__] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/admin/Projects/test-github-events): remote not found
[test push workflow/debug_input__] unable to get git ref: reference not found
[test push workflow/debug_input__] unable to get git revision: reference not found
[test push workflow/debug_input__] ⭐ Run Main Check the inputss
[test push workflow/debug_input__] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/admin/Projects/test-github-events): remote not found
[test push workflow/debug_input__] unable to get git ref: reference not found
[test push workflow/debug_input__] unable to get git revision: reference not found
[test push workflow/debug_input__] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/admin/Projects/test-github-events): remote not found
[test push workflow/debug_input__] unable to get git ref: reference not found
[test push workflow/debug_input__] unable to get git revision: reference not found
[test push workflow/debug_input__] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/admin/Projects/test-github-events): remote not found
[test push workflow/debug_input__] unable to get git ref: reference not found
[test push workflow/debug_input__] unable to get git revision: reference not found
[test push workflow/debug_input__] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/admin/Projects/test-github-events): remote not found
[test push workflow/debug_input__] unable to get git ref: reference not found
[test push workflow/debug_input__] unable to get git revision: reference not found
[test push workflow/debug_input__] 🐳 docker exec cmd=[bash --noprofile --norc -e-o pipefail /var/run/act/workflow/0] user= workdir=
| The event that triggered this workflow is push
[test push workflow/debug_input__] ✅ Success - Main Check the inputss
[test push workflow/debug_input__] Cleaning up container for job debug_input__
[test push workflow/debug_input__] 🏁 Job succeeded
[test push workflow/debug_input__] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/admin/Projects/test-github-events): remote not found
[test push workflow/debug_input__] unable to get git ref: reference not found
[test push workflow/debug_input__] unable to get git revision: reference not found
name: test push workflow
on:
push:
jobs:
debug_input__:
runs-on: 'ubuntu-latest'
steps:
- name: Check the inputss
run: echo "The event that triggered this workflow is ${{ github.event_name }}"
The text was updated successfully, but these errors were encountered:
This is an user error, it's impossible to reliable reverse engineer a webhook payload to an event_name. The auto detection is super basic and were initially not present.
Intially where act aliased to act push, external contributors changed that to do trivial auto detection.
You are expected to run act pull_request --bind -e event_pr_open_simple.json --secret-file .env-dev
More Details:
pull_request_target shares the exact same event payload
pull_request_review has a pull_request property as well
This doesn't fall into the capacity I allocate for act enhancements that are nice to have
aha, I see now it's stated quite clearly in the usage guide :). I thought
the event could be detected from the content of the payload, but apparently
not.
Thanks for helping out!.
On Thu, 3 Oct 2024 at 00:18, ChristopherHX ***@***.***> wrote:
This is an user error, it's impossible to reliable reverse engineer a
webhook to a event_name. The auto detection is super basic and were
initially not present.
Intially where act aliased to act push, external contributors changed
that to do trivial auto detection.
You are expected to run act pull_request --bind -e
event_pr_open_simple.json --secret-file .env-dev
More Details:
- pull_request_target shares the exact same event payload
- pull_request_review has a pull_request property as well
*This doesn't fall into the capacity I allocate for act enhancements that
are nice to have*
—
Reply to this email directly, view it on GitHub
<#2478 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZRHWGNBCY3IGE3E4YP3HQLZZRWMXAVCNFSM6AAAAABPHS3QC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBZG44DKNRSGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
Bug report info
Command used with act
Describe issue
I have two workflows (test-push-workflow.yml, test-pull_request-workflow.yml), one triggers on push events and the other trigger on pull_request events. When providing a sample pull_request event json, the workflow that triggers on the push event is executed, NOT the one that triggers on pull_request. However, If I remove the test-push-workflow.yml from the .github/workflows dir, then test-pull_request-workflow.yml is triggered with the correct pull_request event!.
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
event_pr_open_simple.json:
.github/workflows/test-push-workflow.yml
The text was updated successfully, but these errors were encountered: