Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/check-build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: "Check Build"

on:
push:
branches: [master]
pull_request_target:
paths:
- "dist/**"
Expand Down Expand Up @@ -30,7 +32,7 @@ jobs:
run: echo "$GITHUB_CTX"

- name: "Checkout Pull"
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand All @@ -45,4 +47,4 @@ jobs:
echo "::endgroup::"

- name: "Check Build Action"
uses: cssnr/check-build-action@v1
uses: cssnr/check-build-action@latest
8 changes: 6 additions & 2 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: "PR Labeler"
on:
pull_request_target:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
labeler:
name: "Labeler"
Expand All @@ -15,7 +19,7 @@ jobs:

steps:
- name: "Checkout Configs"
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
repository: cssnr/configs
ref: master
Expand All @@ -37,7 +41,7 @@ jobs:

- name: "Label Creator"
continue-on-error: true
uses: cssnr/label-creator-action@v1
uses: cssnr/label-creator-action@latest
with:
file: .configs/labels/labels.yaml

Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ jobs:

permissions:
pull-requests: write
statuses: write
checks: write

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Setup Node 24"
uses: actions/setup-node@v6
Expand All @@ -38,7 +40,7 @@ jobs:
id: eslint
if: ${{ !cancelled() }}
run: |
npm run lint:report
npm run lint

- name: "Prettier"
if: ${{ !cancelled() }}
Expand Down Expand Up @@ -76,7 +78,7 @@ jobs:
run: |
yq -e '.runs.main | test("^dist/")' action.yml

- name: "ESLint Annotate"
if: ${{ !cancelled() && steps.eslint.outcome != 'success' }}
continue-on-error: true
uses: ataylorme/eslint-annotate-action@d57a1193d4c59cbfbf3f86c271f42612f9dbd9e9 # 3.0.0
#- name: "ESLint Annotate"
# if: ${{ !cancelled() && steps.eslint.outcome != 'success' }}
# continue-on-error: true
# uses: ataylorme/eslint-annotate-action@d57a1193d4c59cbfbf3f86c271f42612f9dbd9e9 # 3.0.0
4 changes: 2 additions & 2 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: "Mirror to Codeberg"
uses: cssnr/mirror-repository-action@v1
uses: cssnr/mirror-repository-action@latest
with:
host: https://codeberg.org
create: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: echo "$GITHUB_CTX"

- name: "Checkout Pull"
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand All @@ -41,10 +41,10 @@ jobs:

- name: "NPM Outdated Check"
continue-on-error: true
uses: cssnr/npm-outdated-action@master
uses: cssnr/npm-outdated-action@latest

- name: "Actions Up"
continue-on-error: true
uses: cssnr/actions-up-action@master
uses: cssnr/actions-up-action@latest
with:
exclude: "cssnr/.*,actions/.*"
14 changes: 9 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
steps:
- name: "Update Tags"
id: tags
uses: cssnr/update-version-tags-action@v1
uses: cssnr/update-version-tags-action@latest
with:
tags: "latest"

- name: "Debug Tags"
continue-on-error: true
Expand All @@ -28,15 +30,17 @@ jobs:
continue-on-error: true
uses: smashedr/update-release-notes-action@master
with:
tags: ${{ steps.tags.outputs.tags }}
location: tail
location: "tail"
actions: |
tags: ${{ steps.tags.outputs.tags }}

- name: "Package Changelog Action"
continue-on-error: true
uses: cssnr/package-changelog-action@v1
uses: cssnr/package-changelog-action@latest

- name: "Send Failure Notification"
if: ${{ failure() }}
uses: sarisia/actions-status-discord@11a0bfe3b50977e38aa2bd4a4ebd296415e83c19 # v1.15.4
uses: sarisia/actions-status-discord@b8381b25576cb341b2af39926ab42c5056cc44ed # v1.15.5
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}
2 changes: 1 addition & 1 deletion .github/workflows/tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: "Update Tags"
uses: cssnr/update-version-tags-action@v1
uses: cssnr/update-version-tags-action@latest
with:
tag: ${{ inputs.tag }}
token: ${{ secrets.GH_PAT }}
25 changes: 24 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: "Debug CTX github"
if: ${{ !github.event.act }}
Expand Down Expand Up @@ -89,6 +89,29 @@ jobs:
exit 1
fi

- name: "3: Test Path"
if: ${{ !github.event.act }}
id: test3
uses: ./
with:
url: "https://pypi.org/pypi/toml_run/json"
method: "GET"
path: '$.urls[?(@.packagetype=="sdist")]'

- name: "3: Verify Path"
if: ${{ !github.event.act }}
run: |
echo 'status: ${{ steps.test3.outputs.status }}'
echo 'headers: ${{ steps.test3.outputs.headers }}'
echo 'data: ${{ steps.test3.outputs.data }}'
echo 'result: ${{ steps.test3.outputs.result }}'
if [ -z '${{ steps.test3.outputs.result }}' ];then
echo "Output Invalid: result"
exit 1
fi
echo 'url: ${{ fromJSON(steps.test3.outputs.result).url }}'
echo 'sha256: ${{ fromJSON(steps.test3.outputs.result).digests.sha256 }}'

- name: "Schedule Failure Notification"
if: ${{ failure() && github.event_name == 'schedule' }}
uses: sarisia/actions-status-discord@v1
Expand Down
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Pass data/headers/params as JSON or YAML formatted strings.
| file | - | File Path to Send [⤵️](#file) |
| name | `file` | File Form Key Name |
| filename | _Original Name_ | Set a Different File Name |
| path | - | Parse a JSON Path result |

### url

Expand Down Expand Up @@ -156,6 +157,7 @@ See the [Examples](#examples) for more usage options...
| status | Response Status |
| headers | Response Headers |
| data | Response Data |
| result | JSON Path Result |

Note: All outputs are run through `JSON.stringify` by default.

Expand Down Expand Up @@ -333,16 +335,21 @@ and [additional](https://cssnr.com/) open source projects.

[![Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/cssnr)

Additionally, you can support other GitHub Actions I have published:
[![Actions Tools](https://raw.githubusercontent.com/smashedr/repo-images/refs/heads/master/actions/actions-tools.png)](https://actions-tools.cssnr.com/)

Additionally, you can support other [GitHub Actions](https://actions.cssnr.com/) I have published:

- [Stack Deploy Action](https://github.com/cssnr/stack-deploy-action?tab=readme-ov-file#readme)
- [Portainer Stack Deploy Action](https://github.com/cssnr/portainer-stack-deploy-action?tab=readme-ov-file#readme)
- [Docker Context Action](https://github.com/cssnr/docker-context-action?tab=readme-ov-file#readme)
- [Actions Up Action](https://github.com/cssnr/actions-up-action?tab=readme-ov-file#readme)
- [Rhysd Actionlint Action](https://github.com/cssnr/actionlint-action?tab=readme-ov-file#readme)
- [Zensical Action](https://github.com/cssnr/zensical-action?tab=readme-ov-file#readme)
- [VirusTotal Action](https://github.com/cssnr/virustotal-action?tab=readme-ov-file#readme)
- [Mirror Repository Action](https://github.com/cssnr/mirror-repository-action?tab=readme-ov-file#readme)
- [Update Version Tags Action](https://github.com/cssnr/update-version-tags-action?tab=readme-ov-file#readme)
- [Docker Tags Action](https://github.com/cssnr/docker-tags-action?tab=readme-ov-file#readme)
- [TOML Action](https://github.com/cssnr/toml-action?tab=readme-ov-file#readme)
- [Update JSON Value Action](https://github.com/cssnr/update-json-value-action?tab=readme-ov-file#readme)
- [JSON Key Value Check Action](https://github.com/cssnr/json-key-value-check-action?tab=readme-ov-file#readme)
- [Parse Issue Form Action](https://github.com/cssnr/parse-issue-form-action?tab=readme-ov-file#readme)
Expand Down Expand Up @@ -376,10 +383,11 @@ These actions are not published on the Marketplace, but may be useful.

These are basic action templates that I use for creating new actions.

- [js-test-action](https://github.com/smashedr/js-test-action?tab=readme-ov-file#readme) - JavaScript
- [ts-test-action](https://github.com/smashedr/ts-test-action?tab=readme-ov-file#readme) - TypeScript
- [py-test-action](https://github.com/smashedr/py-test-action?tab=readme-ov-file#readme) - Python (Dockerfile)
- [docker-test-action](https://github.com/smashedr/docker-test-action?tab=readme-ov-file#readme) - Docker (Image)
- [javascript-action](https://github.com/smashedr/javascript-action?tab=readme-ov-file#readme) - JavaScript
- [typescript-action](https://github.com/smashedr/typescript-action?tab=readme-ov-file#readme) - TypeScript
- [py-test-action](https://github.com/smashedr/py-test-action?tab=readme-ov-file#readme) - Dockerfile Python
- [test-action-uv](https://github.com/smashedr/test-action-uv?tab=readme-ov-file#readme) - Dockerfile Python UV
- [docker-test-action](https://github.com/smashedr/docker-test-action?tab=readme-ov-file#readme) - Docker Image Python

Note: The `docker-test-action` builds, runs and pushes images to [GitHub Container Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry).

Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ inputs:
default: "file"
filename:
description: "Custom File Name"
path:
description: "Parse a JSON Path"

outputs:
status:
Expand All @@ -42,6 +44,8 @@ outputs:
description: "Response Headers"
data:
description: "Response Data"
result:
description: "JSON Path Results"
#url:
# description: "Response URL"

Expand Down
Loading
Loading