8000 This action requires 'base' input to be configured or 'repository.default_branch' to be set in the event payload · Issue #265 · dorny/paths-filter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This action requires 'base' input to be configured or 'repository.default_branch' to be set in the event payload #265
Open
@askb

Description

@askb

I've been trying to test the workflow locally with gh-act CLI, this workflow works on GHA without any issue but seldom works locally with gh-act CLI.

Has anything changed between the versions from 2.11.1 to 3.0.2 that could cause this to fail?

$ gh act --version
act version 0.2.75

[Gerrit Verify/packer-validator] [DEBUG] using github ref: refs/heads/***
[Gerrit Verify/packer-validator] [DEBUG] Found revision: dd0a7c73be5dd89e1***cf6c4560ad06a9b17fe749
[Gerrit Verify/packer-validator] [DEBUG] About to run action &{Paths Changes Filter Michal Dorner <dorner.michal@gmail.com> Execute your workflow steps only if relevant files are modified. map[base:{Git reference (e.g. branch name) against which the changes will be detected. Defaults to repository default branch (e.g. ***).
If it references same branch it was pushed to, changes are detected against the most recent commit before the push.
This option is ignored if action is triggered by pull_request event.
 false } filters:{Path to the configuration file or YAML string with filters definition true } initial-fetch-depth:{How many commits are initially fetched from base branch.
If needed, each subsequent fetch doubles the previously requested number of commits
until the merge-base is found or there are no more commits in the history.
This option takes effect only when changes are detected using git against different base branch.
 false 100} list-files:{Enables listing of files matching the filter:
  'none'  - Disables listing of matching files (default).
  'csv'   - Coma separated list of filenames.
            If needed it uses double quotes to wrap filename with unsafe characters.
  'json'  - Serialized as JSON array.
  'shell' - Space delimited list usable as command line argument list in linux shell.
            If needed it uses single or double quotes to wrap filename with unsafe characters.
  'escape'- Space delimited list usable as command line argument list in linux shell.
            Backslash escapes every potentially unsafe character.
 false none} ref:{Git reference (e.g. branch name) from which the changes will be detected.
This option is ignored if action is triggered by pull_request event.
 false } token:{GitHub Access Token false ${{ github.token }}} working-directory:{Relative path under $GITHUB_WORKSPACE where the repository was checked out. false }] map[changes:{JSON array with names of all filters matching any of changed files }] {node16 map[] dist/index.js  always()  always()     [] []} {blue filter}}
[
.
..
...
[Gerrit Verify/packer-validator]   ✅  Success - Main Clone git submodules
[Gerrit Verify/packer-validator] ⭐ Run Main Check for changes
[Gerrit Verify/packer-validator]   🐳  docker cp src=/home/user/.cache/act/dorny-paths-filter@451***585405083f***5c0***7a35db413c***b3b9006d50/ dst=/var/run/act/actions/dorny-paths-filter@451***585405083f***5c0***7a35db413c***b3b9006d50/
[Gerrit Verify/packer-validator]   🐳  docker exec cmd=[/opt/acttoolcache/node/18.***0.8/x64/bin/node /var/run/act/actions/dorny-paths-filter@451***585405083f***5c0***7a35db413c***b3b9006d50/dist/index.js] user= workdir=
[Gerrit Verify/packer-validator]   ❓  ::group::Get current git ref
| [command]/usr/bin/git branch --show-current
| [command]/usr/bin/git describe --tags --exact-match
| fatal: No names found, cannot describe anything.
| [command]/usr/bin/git rev-parse HEAD
| 639f8a47d8598af***f08bc1169b8fb***f8408c6bae
[Gerrit Verify/packer-validator]   ❓  ::endgroup::
[Gerrit Verify/packer-validator]   ❗  ::error::This action requires 'base' input to be configured or 'repository.default_branch' to be set in the event payload
[Gerrit Verify/packer-validator]   ❌  Failure - Main Check for changes
[Gerrit Verify/packer-validator] exitcode '1': failure
[Gerrit Verify/packer-validator] ⭐ Run Post Gerrit Checkout
[Gerrit Verify/packer-validator]   🐳  docker cp src=/home/user/.cache/act/lfit-checkout-gerrit-change-action@54d751e8bd167bc91f7d665dabe33fae87aaaa63/ dst=/var/run/act/actions/lfit-checkout-gerrit-change-action@54d751e8bd167bc91f7d665dabe33fae87aaaa63/
[Gerrit Verify/packer-validator] ⭐ Run Post actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
[Gerrit Verify/packer-validator]   🐳  docker exec cmd=[/opt/acttoolcache/node/18.***0.8/x64/bin/node /var/run/act/actions/actions-checkout@b4ffde65f46336ab88eb53be808477a3936bae11/dist/index.js] user= workdir=

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0