question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Super confused by the glob

See original GitHub issue

Hello 👋

Thanks for this GitHub Actions!

I’m testing it today but I got super confused by the glob:

image

It’s a private repository so I can’t really show more than that. But you see that I use archive/*.zip and the glob failed to found it. But on the other hand I did ls -l archive/*.zip just before and it worked. This seems very strange.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

2reactions
XiaowenHu96commented, Sep 29, 2021

I’ve solved the issue. After reading the documentation from download-artifact:

If the name input parameter is not provided, all artifacts will be downloaded. To differentiate between downloaded artifacts, a directory denoted by the artifacts name will be created for each individual artifact.

So really, the glob we are looking for is path-to-dowloads/*/*

2reactions
ga-dmoreycommented, Jun 11, 2021

Thanks for your example @cecton . Here’s what I have for the release job that runs after my build:

  release:
    needs: build
    runs-on: ubuntu-latest
    steps:
      - name: Download Artifacts
        uses: actions/download-artifact@v2
        with:
          path: release-files

      - name: List Files
        run: |
          ls release-files

      - name: Release
        uses: softprops/action-gh-release@v1
        with:
          files: |
            release-files/*
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

The ls step confirms that the files are present but the release step doesn’t find the files. I was on v0.1.5 and upgraded to v1 as well with same result.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python: confused about global and local variables
Noob question. I'm writing a program with recursive function calls - it's a game so I'm using recursion to allow the computer to...
Read more >
I'm super confused about this and really need help!
I have an object oController with: -> Create Event: /// @description player stats global.level = 1; global.exp = 0; ...
Read more >
Successful Decision-making in a Confused and Troubled World by
Get Beating the Global Odds: Successful Decision-making in a Confused and Troubled World now with the O'Reilly learning platform.
Read more >
Confused Confusion GIF by Škoda Global - Find & Share on ...
Discover & share this Škoda Global GIF with everyone you know. GIPHY is how you search, share, ... Confused Youtube GIF by vidIQ...
Read more >
Tiffany Tseng
well I guess this confirms it - finally got an email saying I'm no longer eligible for Global Entry because I live in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found