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
My workflow runs fine locally with act, but when I run it remotely I get this error Required property is missing: shell. This is a reference to run steps requiring shell key to be set in composite actions. Metadata Docs. act seems to ignore the requirement and works as expected whether it is set or not.
- name: Set Greeting
run: echo "Hello $INPUT_WHO_TO_GREET."
shell: bash
Link to GitHub repository
No response
Workflow content
# .github/actions/run-in-image/action.yaml
---
name: 'Run command in compose image'description: 'Run Bash Command in docker compose container and output tests results (when necessary)'inputs:
bash-command:
description: 'Bash to command to run in the container'required: truetype: stringdocker-service:
default: appdescription: 'Docker compose service to run the command on'required: falsetype: stringtest-report-path:
default: ''description: 'If a report path is provided, output test-report to github actions'type: stringruns:
using: 'composite'steps:
- name: Run BASH command on ${{ inputs.docker-service }}run: | docker compose run ${{ inputs.docker-service }} bash -c "${{ inputs.bash-command }}"
- name: Test Reportuses: mikepenz/action-junit-report@v4if: ${{ inputs.test-report-path != '' && github.actor != 'nektos/act' && (success() || failure()) }}with:
name: test-resultsreport_paths: ${{ inputs.test-report-path }}# .github/workflows/test.yaml
---
name: Test Imageon:
pull_request:
branches:
- developpush:
branches:
- developenv:
COMPOSE_FILE: ${{ github.actor == 'nektos/act' && 'compose.test.yaml' || 'compose.test.linux.yaml' }}IMAGE_TAG: ga-${{ github.event.number }}permissions:
id-token: writecontents: readconcurrency:
group: ${{ github.workflow }}-${{ github.ref }}cancel-in-progress: truejobs:
bundle_check:
name: Bundle Checkruns-on: ubuntu-latestenv:
COMPOSE_PROJECT_NAME: bundle_checksteps:
- name: Checkoutuses: actions/checkout@v3
- uses: ./.github/actions/run-in-imagewith:
bash-command: "bundle check --verbose"docker-service: app_init
Relevant log output
None
Additional information
No response
The text was updated successfully, but these errors were encountered:
Bug report info
Command used with act
Describe issue
My workflow runs fine locally with act, but when I run it remotely I get this error
Required property is missing: shell
. This is a reference to run steps requiringshell
key to be set in composite actions. Metadata Docs. act seems to ignore the requirement and works as expected whether it is set or not.Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: