Skip to content

Warning: skipping unparseable action #20

@jakub-trzebiatowski

Description

@jakub-trzebiatowski

When running github-ci in a repo with workflow calls...

[jakub@Mac:~/Repositories/Medusa/counter/counter-0 on infra-gcp-2]
% github-ci upgrade                                                                                                                                                                                                                                                              130 ↵
⚠ Warning: skipping unparseable action "./.github/workflows/check-infra.yml"
⚠ Warning: skipping unparseable action "./.github/workflows/check-workflows.yml"
⚠ Warning: skipping unparseable action "./.github/workflows/check-counter-web-infra.yml"
⚠ Warning: skipping unparseable action "./.github/workflows/check-counter-web-app.yml"
✓ Upgrade completed successfully

GitHub API: 8 call(s), 7 from cache

...github-ci considers the called workflow "unparsable".

Example outer workflow:

name: Check PR

on:
  pull_request:

permissions:
  contents: read

jobs:
  check-infra:
    name: infra
    uses: ./.github/workflows/check-infra.yml

  check-workflows:
    name: workflows
    uses: ./.github/workflows/check-workflows.yml

  check-counter-web-infra:
    name: counter-web (infra)
    uses: ./.github/workflows/check-counter-web-infra.yml
    secrets: inherit

    permissions:
      contents: read
      id-token: write

  check-counter-web-app:
    name: counter-web (app)
    uses: ./.github/workflows/check-counter-web-app.yml

Example inner workflow:

name: Check Terraform configuration

on:
  workflow_call:

permissions:
  contents: read

env:
  TERRAFORM_VERSION: 1.14

  TF_INPUT: false
  TF_CLI_ARGS: -no-color
  NO_COLOR: 1

jobs:
  check-formatting:
    name: Check Terraform formatting
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v6

      - name: Set up Terraform
        uses: hashicorp/setup-terraform@v4
        with:
          terraform_version: ~> ${{ env.TERRAFORM_VERSION }}

      - name: Check formatting
        working-directory: infra
        run: terraform fmt -check -recursive

The workflow is correctly parsed by GitHub Actions and the execution succeeds.

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