Comments (4)
It looks like you are trying to include all files at the root of your file system with/*
. This is likely not what you want. You could try a relative path. This should be relative to the working directory of your checkout.
from action-gh-release.
Thanks for sharing this awesome GH Action @softprops!
Oh that is definitely not what I want. The workflow is defined exactly like this:
- name: Setup env
run: |
echo ::set-env name=OUTPUT_DIR::$(make show-output-dir)
- name: Release cli
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: ${{ env.OUTPUT_DIR }}/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Where OUTPUT_DIR
is the relative path of the output folder. This exact workflow works on macOS and linux. Maybe something related to the use of environment variables being broken in the Windows setup. It seems the variable was properly set:
Could it be the env is not being passed down to the action code? I'm not sure at which point the context ${{ env.OUTPUT_DIR }}
is resolved.
from action-gh-release.
Could it be the env is not being passed down to the action code?
That would be my theory. I don't think env gets inherited between steps by default
I'd try some experiments like setting it explicitly
Or adding a debug step in between
with:
files: ${{ env.OUTPUT_DIR }}/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OUTPUT_DIR: ${{ env.OUTPUT_DIR }}
from action-gh-release.
The docs say it should be available https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
Either way I'd run some experiments to see if there's a way to be more explicit and work backwards to implicit
from action-gh-release.
Related Issues (20)
- Node.js 16 actions are deprecated HOT 2
- Unable to overwrite an existing draft release
- Run successful, Release and tag created, but Missing Files HOT 7
- current version does not match any files issue, previous version is okay HOT 4
- make_latest missing in action.yml HOT 2
- v2.0.4 released but not set as latest version HOT 1
- ⚠️ GitHub release failed with status: 422 undefined HOT 6
- files Add array type support HOT 1
- GitHub release failed related to file DexMetadata (.dm) in Android with status: Not Found
- enhancement: display more helpful error message other than undefined HOT 8
- Ability to default the body to Github's "generate release notes"? HOT 2
- File pattern not matching file name when using "
- Existing releases are no longer updated HOT 2
- File Pattern Negation HOT 1
- files option does not respect working-directory setting HOT 6
- how to release everything in a folder
- Cannot set previous tag. Create release notes from [old latest till new latest] HOT 2
- Fails with too many commits: "Argument list too long" HOT 1
- File pattern not matching
- Upload fails with Error: write EPIPE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-gh-release.