Security ci (#8992)

* test pr

* conditional

* conditional

* conditional

* conditional

* conditional

* changes

* changes

* add changeset

* changes

* asd

* asd

* asd

* asd

* asd

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
pngwn 2024-08-05 15:48:38 +01:00 committed by GitHub
parent 05724fafa0
commit d2a97ada58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ runs:
id: gradio_version
shell: bash
run: |
GRADIO_VERSION=$(curl -s https://pypi.org/pypi/gradio/json | grep -o '"version":"[^"]*"' | cut -d'"' -f4 | head -n 1)"
GRADIO_VERSION=$(curl -s https://pypi.org/pypi/gradio/json | grep -o '"version":"[^"]*"' | cut -d'"' -f4 | head -n 1)
echo $GRADIO_VERSION >> $GITHUB_OUTPUT
- name: convert to JSON
uses: gradio-app/github/actions/input-to-json@main
@ -60,7 +60,7 @@ runs:
labels: ${{ github.event.pull_request.labels }}
run_id: ${{ github.run_id }}
gradio_version: ${{ steps.gradio_version.outputs.gradio_version }}
- name: cat json #remove
- name: cat json
run: cat output.json
shell: bash
- name: upload JSON
@ -73,6 +73,6 @@ runs:
uses: gradio-app/github/actions/json-to-output@main
with:
json: output.json
- name: echo outputs #remove
- name: echo outputs
run: echo ${{ toJson(steps.pr.outputs) }}
shell: bash