sergeysova / jq-action Goto Github PK
View Code? Open in Web Editor NEWThis project forked from r26d/jq-action
This lets you do jq operations in GitHub Actions.
License: Other
This project forked from r26d/jq-action
This lets you do jq operations in GitHub Actions.
License: Other
v2
No response
I am using your workflow in an organisation workflow, and although it was running with no problem for a few months, today it started erroring out.
The expected behaviour would be to set the $GITHUB_OUTPUT correctly.
What is happening is erroring out:
Other (please specify in steps to reproduce)
No response
No response
No response
Hi! Can feature of providing path to the .sh
file instead of command itself be added?
- name: Extract version from package.json
uses: sergeysova/jq-action@v2
with:
cmdPath: 'scripts/cmd.sh'
can't think about
Hey,
Into cmd is it possible to use github input variables like :
- name: My cmd
uses: sergeysova/jq-action@v2
with:
cmd: 'echo "version ${{ github.event.inputs.version }}"'
It's a pity that this Action doesn't support Windows environment.
I am very sorry that I have limited ability to solve this problem independently.
I hope developers can solve this problem as soon as possible. Thank you very much.
v2
No response
Create an action as explained on README.md
- name: Extract version from package.json
uses: sergeysova/jq-action@v2
id: version
if: ${{ inputs.push == true }}
with:
cmd: 'jq .version apps/${{ inputs.app }}/package.json -r'
No warnings
Warning: The set-output
command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Node v16
yarn v2
Linux
Next.js
sergeysova/jq-action@v2
No response
Create your .github workflow descriptor file and use this action:
uses: sergeysova/jq-action@v2
with:
cmd: jq -n env
After #9 being merged. The following error most NOT appear anymore at github action output logs:
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
It stills appear as tag v2 point to commit acfe8e3 instead of commit a3f0d4f
No response
No response
No response
No response
Hey there, thanks for the action. Would you be open to accepting a PR that adds support for multiline output? It's helpful for example when outputting one field from each item in a list. Right now, if the jq
output has multiple lines, only the first line is set as the output, and the rest of the lines are just written to stdout.
It would look like this:
- name: Extract contributed themes from package.json
uses: .sergeysova/jq-action@v2
id: themes
with:
cmd: 'jq .contributes.themes[].path ${{ inputs.working-directory }}/package.json --raw-output'
multiline: true
And then the multiline output can be used like
- name: Verify each contributed theme exists
shell: bash
run: |
themes_in_package_json="${{ steps.themes.outputs.value }}"
for theme in $themes_in_package_json; do
....
done
Let me know! Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.