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
1 change: 1 addition & 0 deletions .github/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/.*"
10 changes: 7 additions & 3 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 @@ -30,13 +32,15 @@ jobs:
with:
tags: ${{ steps.tags.outputs.tags }}
location: tail
type: "actions"

- 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 }}
79 changes: 43 additions & 36 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ name: "Test"

on:
workflow_dispatch:
schedule:
- cron: "18 18 * * 1,3,5"
push:
branches: ["master"]
pull_request:

concurrency:
Expand All @@ -18,55 +15,65 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5

permissions:
contents: write

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

- name: "Debug event.json"
if: ${{ !github.event.act }}
continue-on-error: true
run: |
cat "${GITHUB_EVENT_PATH}"
run: cat "${GITHUB_EVENT_PATH}"

- name: "Debug CTX github"
if: ${{ !github.event.act }}
continue-on-error: true
env:
GITHUB_CTX: ${{ toJSON(github) }}
run: echo "$GITHUB_CTX"

- name: "Debug Environment"
if: ${{ !github.event.act }}
continue-on-error: true
run: env

- name: "Test Non-Pull"
- name: "1 - Test Non-Pull"
if: ${{ github.event_name != 'pull_request' }}
id: test
id: test1
uses: ./
with:
selector: "commit.message"
summary: ${{ !github.event.act }}
path: "author.type"
#sha: dd49c0cc254760111a78f2c739efcedd567e2bf2

- name: "Test Pull"
- name: "1 - Validate Outputs"
if: ${{ github.event_name != 'pull_request' }}
uses: cssnr/validate-outputs-action@master
with:
outputs: ${{ toJSON(steps.test1.outputs) }}
data: |
sha: ${{ github.sha }}
result: User
commit:

- name: "2 - Test Pull"
if: ${{ github.event_name == 'pull_request' }}
id: pull
id: test2
uses: ./
with:
selector: "commit.message"
sha: ${{ github.event.pull_request.head.sha }}
summary: ${{ !github.event.act }}
path: "author.type"
#sha: ${{ github.event.pull_request.head.sha }}

- name: "Verify"
env:
COMMIT: ${{ steps.test.outputs.commit || steps.pull.outputs.commit }}
RESULT: ${{ steps.test.outputs.result || steps.pull.outputs.result }}
run: |
echo "sha: '${{ steps.test.outputs.sha || steps.pull.outputs.sha }}'"
if [ -z '${{ steps.test.outputs.sha || steps.pull.outputs.sha }}' ];then
echo "No Output: sha"
exit 1
fi
echo "commit: ${COMMIT}"
if [ -z "${COMMIT}" ];then
echo "No Output: commit"
exit 1
fi
echo "result: ${RESULT}"
if [ -z "${RESULT}" ];then
echo "No Output: result"
exit 1
fi
- name: "2 - Validate Outputs"
if: ${{ github.event_name == 'pull_request' }}
uses: cssnr/validate-outputs-action@master
with:
outputs: ${{ toJSON(steps.test2.outputs) }}
data: |
sha: ${{ github.event.pull_request.head.sha }}
result: User
message:
commit:

- name: "Schedule Failure Notification"
if: ${{ failure() && github.event_name == 'schedule' }}
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
},
{
"files": ["**/*.js", "**/*.mjs", "**/*.css", "**/*.scss"],
"files": ["**/*.js", "**/*.mjs", "**/*.ts", "**/*.css", "**/*.scss"],
"options": {
"tabWidth": 4
}
Expand Down
Loading