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
30 changes: 5 additions & 25 deletions .github/workflows/check-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: "Check Build"

on:
pull_request_target:
paths:
- "dist/**"
- "src/**"
- "package*.json"
- "rollup.config.*"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -24,24 +29,12 @@ jobs:
GITHUB_CTX: ${{ toJSON(github) }}
run: echo "$GITHUB_CTX"

- name: "Check Changed Files"
id: changed
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
with:
files: |
dist/**
src/**
package*.json
rollup.config.*

- name: "Checkout Pull"
if: ${{ steps.changed.outputs.any_changed == 'true' }}
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: "Debug"
if: ${{ steps.changed.outputs.any_changed == 'true' }}
continue-on-error: true
run: |
echo "::group::ls"
Expand All @@ -51,18 +44,5 @@ jobs:
tree .
echo "::endgroup::"

#- name: "Setup Node"
# if: ${{ steps.changed.outputs.any_changed == 'true' }}
# uses: actions/setup-node@v6
# with:
# node-version: 24
#
#- name: "Install"
# if: ${{ steps.changed.outputs.any_changed == 'true' }}
# id: install
# run: |
# npm ci

- name: "Check Build Action"
if: ${{ steps.changed.outputs.any_changed == 'true' }}
uses: cssnr/check-build-action@v1
7 changes: 2 additions & 5 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ concurrency:
jobs:
lint:
name: "Lint"
if: ${{ !contains(github.event.head_commit.message, '#nolint') }}
runs-on: ubuntu-latest
timeout-minutes: 5

Expand Down Expand Up @@ -75,11 +76,7 @@ jobs:
run: |
yq -e '.runs.main | test("^dist/")' action.yml

#- name: "Check Build Action"
# if: ${{ !cancelled() }}
# uses: cssnr/check-build-action@v1

- name: "ESLint Annotate"
if: ${{ !cancelled() && steps.eslint.outcome != 'success' }}
continue-on-error: true
uses: ataylorme/eslint-annotate-action@v3
uses: ataylorme/eslint-annotate-action@d57a1193d4c59cbfbf3f86c271f42612f9dbd9e9 # 3.0.0
6 changes: 6 additions & 0 deletions .github/workflows/pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ jobs:
- name: "NPM Outdated Check"
continue-on-error: true
uses: cssnr/npm-outdated-action@master

- name: "Actions Up"
continue-on-error: true
uses: cssnr/actions-up-action@master
with:
exclude: "cssnr/.*,actions/.*"
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:

- name: "Send Failure Notification"
if: ${{ failure() }}
uses: sarisia/actions-status-discord@v1
uses: sarisia/actions-status-discord@11a0bfe3b50977e38aa2bd4a4ebd296415e83c19 # v1.15.4
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ node_modules/
.github/disabled/

# Files
.github/PULL_REQUEST_TEMPLATE/
.github/pull_request_template.md
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![GitHub Tag Minor](https://img.shields.io/github/v/tag/cssnr/web-request-action?sort=semver&filter=!v*.*.*&logo=git&logoColor=white&labelColor=585858&label=%20)](https://github.com/cssnr/web-request-action/releases)
[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/web-request-action?logo=git&logoColor=white&labelColor=585858&label=%20)](https://github.com/cssnr/web-request-action/releases/latest)
[![GitHub Dist Size](https://img.shields.io/github/size/cssnr/web-request-action/dist%2Findex.js?logo=bookstack&logoColor=white&label=dist%20size)](https://github.com/cssnr/web-request-action/blob/master/src/index.js)
[![Action Run Using](https://img.shields.io/badge/dynamic/yaml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fcssnr%2Fweb-request-action%2Frefs%2Fheads%2Fmaster%2Faction.yml&query=%24.runs.using&logo=githubactions&logoColor=white&label=runs)](https://github.com/cssnr/web-request-action/blob/master/action.yml)
[![Workflow Release](https://img.shields.io/github/actions/workflow/status/cssnr/web-request-action/release.yaml?logo=cachet&label=release)](https://github.com/cssnr/web-request-action/actions/workflows/release.yaml)
[![Workflow Test](https://img.shields.io/github/actions/workflow/status/cssnr/web-request-action/test.yaml?logo=cachet&label=test)](https://github.com/cssnr/web-request-action/actions/workflows/test.yaml)
[![Workflow Lint](https://img.shields.io/github/actions/workflow/status/cssnr/web-request-action/lint.yaml?logo=cachet&label=lint)](https://github.com/cssnr/web-request-action/actions/workflows/lint.yaml)
Expand Down Expand Up @@ -278,6 +279,7 @@ Additionally, you can support other GitHub Actions 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)
- [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)
Expand All @@ -300,6 +302,7 @@ Additionally, you can support other GitHub Actions I have published:

These actions are not published on the Marketplace, but may be useful.

- [cssnr/create-files-action](https://github.com/cssnr/create-files-action?tab=readme-ov-file#readme) - Create various files from templates.
- [cssnr/draft-release-action](https://github.com/cssnr/draft-release-action?tab=readme-ov-file#readme) - Keep a draft release ready to publish.
- [cssnr/env-json-action](https://github.com/cssnr/env-json-action?tab=readme-ov-file#readme) - Convert env file to json or vice versa.
- [cssnr/push-artifacts-action](https://github.com/cssnr/push-artifacts-action?tab=readme-ov-file#readme) - Sync files to a remote host with rsync.
Expand All @@ -315,14 +318,14 @@ 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
- [py-test-action](https://github.com/smashedr/py-test-action?tab=readme-ov-file#readme) - Python
- [ts-test-action](https://github.com/smashedr/ts-test-action?tab=readme-ov-file#readme) - TypeScript
- [docker-test-action](https://github.com/smashedr/docker-test-action?tab=readme-ov-file#readme) - Docker Image
- [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)

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).

---

</details>

For a full list of current projects to support visit: [https://cssnr.github.io/](https://cssnr.github.io/)
For a full list of current projects visit: [https://cssnr.github.io/](https://cssnr.github.io/)
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ outputs:
description: "Response Data"

runs:
using: "node20"
using: "node24"
main: "dist/index.js"
Loading