[GH-ISSUE #1281] Cannot find on: pull_request: #698

Closed
opened 2026-03-01 21:45:37 +03:00 by kerem · 2 comments
Owner

Originally created by @johntimothybailey on GitHub (Jul 27, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1281

Bug report info

Stage  Job ID  Job name  Workflow name  Workflow file  Events

Command used with act

act -l --container-architecture linux/amd64

Describe issue

My file that runs on Github is as follows but cannot be found or ran by act

name: Mobile UI Package

on:
  pull_request:
    branches: [dev]

jobs:
  verify:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Flutter Version Manager (FVM)
        uses: kuhnroyal/flutter-fvm-config-action@v1

      - name: Flutter Action
        uses: subosito/flutter-action@v1
        with:
            flutter-version: ${{ env.FLUTTER_VERSION }}
            channel: ${{ env.FLUTTER_CHANNEL }}

      - name: Install
        run: flutter --version
        working-directory: ./mobile

However, if I change to on: push the job is found.

No response

Workflow content

name: Mobile UI Package

on:
  pull_request:
    branches: [dev]

jobs:
  verify:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Flutter Version Manager (FVM)
        uses: kuhnroyal/flutter-fvm-config-action@v1

      - name: Flutter Action
        uses: subosito/flutter-action@v1
        with:
            flutter-version: ${{ env.FLUTTER_VERSION }}
            channel: ${{ env.FLUTTER_CHANNEL }}

      - name: Install
        run: flutter --version
        working-directory: ./mobile

Relevant log output

DEBU[0000] Loading environment from /Users/johnbailey/Development/project/.env 
DEBU[0000] Loading secrets from /Users/johnbailey/Development/project/.secrets 
DEBU[0000] Loading workflows from '/Users/johnbailey/Development/project/.github/workflows' 
DEBU[0000] Loading workflows recursively                
DEBU[0000] Found workflow 'api-unit-tests.yml' in '/Users/johnbailey/Development/project/.github/workflows/api-unit-tests.yml' 
DEBU[0000] Found workflow 'verify-mobile.yml' in '/Users/johnbailey/Development/Fursure/project/.github/workflows/verify-mobile.yml' 
DEBU[0000] Found workflow 'verify.yml' in '/Users/johnbailey/Development/project/.github/workflows/verify.yml' 
DEBU[0000] Reading workflow '/Users/johnbailey/Development/project/.github/workflows/api-unit-tests.yml' 
DEBU[0000] Reading workflow '/Users/johnbailey/Development/project/.github/workflows/verify-mobile.yml' 
DEBU[0000] Reading workflow '/Users/johnbailey/Development/project/.github/workflows/verify.yml' 
DEBU[0000] Planning event: push

Additional information

No response

Originally created by @johntimothybailey on GitHub (Jul 27, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1281 ### Bug report info ```plain text Stage Job ID Job name Workflow name Workflow file Events ``` ### Command used with act ```sh act -l --container-architecture linux/amd64 ``` ### Describe issue My file that runs on Github is as follows but cannot be found or ran by `act` ```markdown name: Mobile UI Package on: pull_request: branches: [dev] jobs: verify: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Flutter Version Manager (FVM) uses: kuhnroyal/flutter-fvm-config-action@v1 - name: Flutter Action uses: subosito/flutter-action@v1 with: flutter-version: ${{ env.FLUTTER_VERSION }} channel: ${{ env.FLUTTER_CHANNEL }} - name: Install run: flutter --version working-directory: ./mobile ``` However, if I change to `on: push` the job is found. ### Link to GitHub repository _No response_ ### Workflow content ```yml name: Mobile UI Package on: pull_request: branches: [dev] jobs: verify: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Flutter Version Manager (FVM) uses: kuhnroyal/flutter-fvm-config-action@v1 - name: Flutter Action uses: subosito/flutter-action@v1 with: flutter-version: ${{ env.FLUTTER_VERSION }} channel: ${{ env.FLUTTER_CHANNEL }} - name: Install run: flutter --version working-directory: ./mobile ``` ### Relevant log output ```sh DEBU[0000] Loading environment from /Users/johnbailey/Development/project/.env DEBU[0000] Loading secrets from /Users/johnbailey/Development/project/.secrets DEBU[0000] Loading workflows from '/Users/johnbailey/Development/project/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'api-unit-tests.yml' in '/Users/johnbailey/Development/project/.github/workflows/api-unit-tests.yml' DEBU[0000] Found workflow 'verify-mobile.yml' in '/Users/johnbailey/Development/Fursure/project/.github/workflows/verify-mobile.yml' DEBU[0000] Found workflow 'verify.yml' in '/Users/johnbailey/Development/project/.github/workflows/verify.yml' DEBU[0000] Reading workflow '/Users/johnbailey/Development/project/.github/workflows/api-unit-tests.yml' DEBU[0000] Reading workflow '/Users/johnbailey/Development/project/.github/workflows/verify-mobile.yml' DEBU[0000] Reading workflow '/Users/johnbailey/Development/project/.github/workflows/verify.yml' DEBU[0000] Planning event: push ``` ### Additional information _No response_
kerem 2026-03-01 21:45:37 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@czf commented on GitHub (Aug 9, 2022):

I think the reason this works when you have on: push is because the default for act uses the push event.

instead of
act -l --container-architecture linux/amd64
try
act pull_request -l --container-architecture linux/amd64

<!-- gh-comment-id:1209820638 --> @czf commented on GitHub (Aug 9, 2022): I think the reason this works when you have on: push is because the default for act uses the push event. instead of `act -l --container-architecture linux/amd64` try `act pull_request -l --container-architecture linux/amd64`
Author
Owner

@catthehacker commented on GitHub (Aug 27, 2022):

As described by czf

<!-- gh-comment-id:1229340645 --> @catthehacker commented on GitHub (Aug 27, 2022): As described by czf
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#698
No description provided.