Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check updates fails with multiple files #23

Closed
xnox opened this issue Feb 28, 2024 · 1 comment
Closed

check updates fails with multiple files #23

xnox opened this issue Feb 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@xnox
Copy link
Member

xnox commented Feb 28, 2024

Description

Run wolfi-dev/actions/wolfictl-check-updates@main
/usr/bin/docker run --name ghcriowolfidevwolfictllatestsha2[5](https://github.com/wolfi-dev/os/actions/runs/8073878722/job/22058298420?pr=13813#step:5:6)[6](https://github.com/wolfi-dev/os/actions/runs/8073878722/job/22058298420?pr=13813#step:5:7)70b855a7ec9cc1fabd1dfc1a7c41eea9bc7bfd402d7574e87cc80e7bb36a64bf_60be7f --label 8eeb45 --workdir /github/workspace --rm -e "INPUT_TOKEN" -e "INPUT_CHANGED_FILES" -e "GITHUB_TOKEN" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e GITHUB_ACTIONS=true -e CI=true --entrypoint "wolfictl" -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/os/os":"/github/workspace" ghcr.io/wolfi-dev/wolfictl:latest@sha256:70b855a7ec9cc1fabd1dfc1a7c41eea9bc7bfd402d7574e87cc80e7bb36a64bf  "check" "update" "bun-bootstrap.yaml bun.yaml"
2024/02/28 01:29:51 INFO error during command execution: failed to read bun-bootstrap.yaml bun.yaml: open bun-bootstrap.yaml bun.yaml: no such file or directory
failed to get package configs: failed to read package config bun-bootstrap.yaml bun.yaml: open bun-bootstrap.yaml bun.yaml: no such file or directory

from https://github.com/wolfi-dev/os/actions/runs/8073878722/job/22058298420?pr=13813

It seems like

    - name: Get changed files
      id: files
      uses: tj-actions/changed-files@716b1e13042866565e00e85fd4ec490e186c4a2f #tj-actions/changed-files@v41.0.1
      with:
        separator: ' '
        files: "*.yaml"
        files_ignore: ".yam.yaml"

    - name: Check
      id: check
      uses: wolfi-dev/actions/wolfictl-check-updates@main
      if: ${{ steps.files.outputs.all_changed_files != '' }}
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
        changed_files: ${{ steps.files.outputs.all_changed_files }}

generates a space separated list of yaml files which is instead treated as a single filename with spaces.

@xnox xnox added the bug Something isn't working label Feb 28, 2024
@cpanato
Copy link
Member

cpanato commented Mar 14, 2024

thanks

this was fixed in #27

@cpanato cpanato closed this as completed Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants