actions
actions copied to clipboard
automatic release artifacts not found
I'm trying to run the following workflow file: https://github.com/ahmedmoselhi/pcsx2/blob/master/.github/workflows/release_pipeline.yml
but after I run the workflow I got the following error:
Error: /home/runner/work/pcsx2/pcsx2/ci-artifacts/* doesn't match any files
the job to create release and upload files:
create_release:
needs:
- upload_artifacts
name: "Create Release"
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ github.WORKSPACE }}
steps:
- uses: actions/checkout@v3
- name: Prepare Artifact Folder
run: mkdir -p ${{ github.WORKSPACE }}/ci-artifacts
- uses: actions/download-artifact@v3
name: Download all Artifacts
with:
path: ${{ github.WORKSPACE }}/ci-artifacts
- uses: "marvinpinto/action-automatic-releases@latest"
name: Release
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
${{ github.WORKSPACE }}/ci-artifacts/*
I was able to resolve this issue by setting name:
on both the upload-artifact and download-artifact actions. Without that, I think the artifacts may end up in unexpected subdirectories.
I solved it using commands like ls
in the output and running the action. Figured out it was going to a subdirectory I didn't expect.