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: 6 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
paths:
.github/workflows/**/*.{yml,yaml}:
ignore:
- '"inputs" section is alias node but mapping node is expected'
- '"paths" section must be sequence node but got alias node with "" tag'
- '"paths-ignore" section must be sequence node but got alias node with "" tag'
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
#open-pull-requests-limit: 1

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
#open-pull-requests-limit: 1
2 changes: 2 additions & 0 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
path: ".vitepress/dist"
secrets:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
ai_chat_api: ${{ secrets.AI_CHAT_API }}
ai_chat_auth: ${{ secrets.AI_CHAT_AUTH }}

deploy:
name: "Deploy"
Expand Down
43 changes: 25 additions & 18 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,54 +14,61 @@ concurrency:
jobs:
lint:
name: "Lint"
if: ${{ !contains(github.event.head_commit.message, '#nolint') }}
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ !contains(github.event.head_commit.message, '#nolint') }}

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}"
- 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: "Setup Node 24"
uses: actions/setup-node@v6
with:
node-version: 24

- name: "Install"
run: |
npm ci
run: npm ci

- name: "Build"
if: ${{ !cancelled() }}
run: |
npm run docs:build
run: npm run docs:build

#- name: "ESLint"
#- name: "eslint"
# if: ${{ !cancelled() }}
# run: |
# npm run lint
# run: npm run lint

- name: "Prettier Check"
- name: "prettier"
if: ${{ !cancelled() }}
run: |
npm run prettier:check
run: npm run prettier:check

- name: "Yamllint"
- name: "yamllint"
if: ${{ !cancelled() }}
env:
CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
CONFIG: .github/yamllint.yaml
run: |
echo "::group::List Files"
yamllint -d '${{ env.CONFIG }}' --list-files .
yamllint -c "${{ env.CONFIG }}" --list-files .
echo "::endgroup::"
yamllint -d '${{ env.CONFIG }}' .
yamllint -c "${{ env.CONFIG }}" .

- name: "Actionlint"
- name: "actionlint"
if: ${{ !cancelled() }}
uses: cssnr/actionlint-action@master
uses: cssnr/actionlint-action@v1
with:
shellcheck_opts: -e SC2129
15 changes: 10 additions & 5 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ concurrency:
jobs:
build:
name: "Build"
if: ${{ !contains(github.event.head_commit.message, '#nodeploy') }}
if: ${{ !contains(github.event.head_commit.message, '#nodeploy') || github.actor != 'dependabot[bot]' }}

uses: cssnr/workflows/.github/workflows/npm-build.yaml@master
permissions:
contents: read
with:
build: "npm run docs:build"
path: ".vitepress/dist"
pages: true
secrets:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
ai_chat_api: ${{ secrets.AI_CHAT_API }}
ai_chat_auth: ${{ secrets.AI_CHAT_AUTH }}

deploy:
name: "Deploy"
Expand All @@ -47,12 +52,12 @@ jobs:
steps:
- name: "Deploy Pages"
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5

- name: "Send Deploy Notification"
if: ${{ !cancelled() }}
continue-on-error: true
uses: sarisia/actions-status-discord@b8381b25576cb341b2af39926ab42c5056cc44ed # v1.15.5
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: ${{ steps.deployment.outputs.page_url }}
Expand Down Expand Up @@ -81,7 +86,7 @@ jobs:

- name: "Send Discord Notification"
if: ${{ failure() }}
uses: sarisia/actions-status-discord@b8381b25576cb341b2af39926ab42c5056cc44ed # v1.15.5
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}
description: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
7 changes: 7 additions & 0 deletions .github/yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: relaxed

ignore-from-file: .gitignore

rules:
line-length:
max: 120
11 changes: 8 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Generic
.idea/
*.iml
.vscode/
**/cache/
**/dist/
cache/
dist/
build/
node_modules/
.vitepress/contributors.json
*.tsbuildinfo
# VitePress
contributors.json
.env
.env.development
5 changes: 1 addition & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
.idea/
.vscode/
dist/
node_modules/
.github/pull_request_template.md
package-lock.json
13 changes: 7 additions & 6 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"trailingComma": "es5",
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"singleQuote": true,
"printWidth": 110,
"printWidth": 120,
"overrides": [
{
"files": ["**/*.html", "**/*.yaml", "**/*.yml"],
"files": ["**/*.vue"],
"options": {
"singleQuote": false
"printWidth": 120
}
},
{
"files": ["**/*.css", "**/*.scss"],
"files": ["**/*.html", "**/*.yaml", "**/*.yml"],
"options": {
"tabWidth": 4
"singleQuote": false,
"printWidth": 120
}
}
]
Expand Down
3 changes: 2 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default defineConfig({
srcDir: './docs',
// base: '/path/',
vite: {
envDir: '..',
server: {
allowedHosts: true,
},
Expand Down Expand Up @@ -99,7 +100,7 @@ export default defineConfig({
icon: {
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10.984 13.836a.5.5 0 0 1-.353-.146l-.745-.743a.5.5 0 1 1 .706-.708l.392.391 1.181-1.18a.5.5 0 0 1 .708.707l-1.535 1.533a.504.504 0 0 1-.354.146zm9.353-.147l1.534-1.532a.5.5 0 0 0-.707-.707l-1.181 1.18-.392-.391a.5.5 0 1 0-.706.708l.746.743a.497.497 0 0 0 .706-.001zM4.527 7.452l2.557-1.585A1 1 0 0 0 7.09 4.17L4.533 2.56A1 1 0 0 0 3 3.406v3.196a1.001 1.001 0 0 0 1.527.85zm2.03-2.436L4 6.602V3.406l2.557 1.61zM24 12.5c0 1.93-1.57 3.5-3.5 3.5a3.503 3.503 0 0 1-3.46-3h-2.08a3.503 3.503 0 0 1-3.46 3 3.502 3.502 0 0 1-3.46-3h-.558c-.972 0-1.85-.399-2.482-1.042V17c0 1.654 1.346 3 3 3h.04c.244-1.693 1.7-3 3.46-3 1.93 0 3.5 1.57 3.5 3.5S13.43 24 11.5 24a3.502 3.502 0 0 1-3.46-3H8c-2.206 0-4-1.794-4-4V9.899A5.008 5.008 0 0 1 0 5c0-2.757 2.243-5 5-5s5 2.243 5 5a5.005 5.005 0 0 1-4.952 4.998A2.482 2.482 0 0 0 7.482 12h.558c.244-1.693 1.7-3 3.46-3a3.502 3.502 0 0 1 3.46 3h2.08a3.503 3.503 0 0 1 3.46-3c1.93 0 3.5 1.57 3.5 3.5zm-15 8c0 1.378 1.122 2.5 2.5 2.5s2.5-1.122 2.5-2.5-1.122-2.5-2.5-2.5S9 19.122 9 20.5zM5 9c2.206 0 4-1.794 4-4S7.206 1 5 1 1 2.794 1 5s1.794 4 4 4zm9 3.5c0-1.378-1.122-2.5-2.5-2.5S9 11.122 9 12.5s1.122 2.5 2.5 2.5 2.5-1.122 2.5-2.5zm9 0c0-1.378-1.122-2.5-2.5-2.5S18 11.122 18 12.5s1.122 2.5 2.5 2.5 2.5-1.122 2.5-2.5zm-13 8a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0zm2 0a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0zm12 0c0 1.93-1.57 3.5-3.5 3.5a3.503 3.503 0 0 1-3.46-3.002c-.007.001-.013.005-.021.005l-.506.017h-.017a.5.5 0 0 1-.016-.999l.506-.017c.018-.002.035.006.052.007A3.503 3.503 0 0 1 20.5 17c1.93 0 3.5 1.57 3.5 3.5zm-1 0c0-1.378-1.122-2.5-2.5-2.5S18 19.122 18 20.5s1.122 2.5 2.5 2.5 2.5-1.122 2.5-2.5z"/></svg>',
},
link: 'https://github.com/search?q=topic%3Aactions%20org%3Acssnr&type=Repositories',
link: 'https://github.com/search?q=topic%3Agithub-actions%20org%3Acssnr&type=repositories',
},
{ icon: 'vitepress', link: settings.source_repo },
{ icon: 'discord', link: 'https://discord.gg/wXy6m2X8wY' },
Expand Down
4 changes: 3 additions & 1 deletion .vitepress/scripts/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default {
'cssnr/upload-release-action',
'cssnr/virustotal-action',
'cssnr/web-request-action',
'cssnr/webstore-publish-action',
'cssnr/zensical-action',
],
unpublished: [
Expand All @@ -33,7 +34,8 @@ export default {
'cssnr/env-json-action',
'cssnr/push-artifacts-action',
'cssnr/validate-outputs-action',
'smashedr/update-release-notes-action',
'smashedr/ai-issue-action',
'smashedr/combine-release-notes-action',
'smashedr/combine-release-notes-action',
],
template: [
Expand Down
6 changes: 1 addition & 5 deletions .vitepress/theme/components/ActionsNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ const currentAction = computed(() => {
</script>

<template>
<VPNavBarMenuGroup
v-if="!screenMenu"
:item="{ text: currentAction, items: actions }"
class="actions-navigation"
/>
<VPNavBarMenuGroup v-if="!screenMenu" :item="{ text: currentAction, items: actions }" class="actions-navigation" />
<VPNavScreenMenuGroup v-else :text="currentAction" :items="actions" class="actions-navigation" />
</template>

Expand Down
5 changes: 1 addition & 4 deletions .vitepress/theme/components/Badges.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ if (!props.image) badges = badges.filter((b) => !b.image)
media="(prefers-color-scheme: dark)"
srcset="https://img.shields.io/badge/github-0d1117?style=for-the-badge&logo=github"
/>
<img
src="https://img.shields.io/badge/github-424a53?style=for-the-badge&logo=github"
alt="GitHub"
/>
<img src="https://img.shields.io/badge/github-424a53?style=for-the-badge&logo=github" alt="GitHub" />
</picture>
</a>

Expand Down
10 changes: 2 additions & 8 deletions .vitepress/theme/components/GitHubTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ function shortName(repo) {
<tbody>
<tr v-for="repo in props.repos" :key="repo">
<td class="repository">
<a :href="`https://github.com/${repo}`" :title="repo" target="_blank" rel="noopener">{{
shortName(repo)
}}</a>
<a :href="`https://github.com/${repo}`" :title="repo" target="_blank" rel="noopener">{{ shortName(repo) }}</a>
</td>
<td class="center">
<a :href="`https://github.com/${repo}/stargazers`" target="_blank" rel="noopener">
Expand All @@ -88,11 +86,7 @@ function shortName(repo) {
</a>
</td>
<td v-if="runs" class="center">
<a
:href="`https://github.com/${repo}/blob/master/${actionYaml(repo)}`"
target="_blank"
rel="noopener"
>
<a :href="`https://github.com/${repo}/blob/master/${actionYaml(repo)}`" target="_blank" rel="noopener">
<img alt="Language" :src="getLink('runs', repo)" />
</a>
</td>
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/LatestVersionBadge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function generateHash(event) {
/**
* Fetch Data
* @param {String} url
* @return {Promise<Object>}
* @return {Promise<object>}
*/
async function fetchData(url) {
const options = { headers: { 'X-GitHub-Api-Version': '2022-11-28' } }
Expand Down
20 changes: 8 additions & 12 deletions .vitepress/theme/components/RollingTags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const props = defineProps({
<template>
<p>
The following rolling
<a :href="`https://github.com/${props.repo}/tags`" target="_blank" rel="noreferrer">tags</a> are
maintained to improve stability across updates.
<a :href="`https://github.com/${props.repo}/tags`" target="_blank" rel="noreferrer">tags</a> are maintained to
improve stability across updates.
</p>
<table>
<thead>
Expand Down Expand Up @@ -79,21 +79,19 @@ const props = defineProps({
</p>

<p>
The <strong>Major</strong> tag is recommended. It is the most up-to-date and always backwards compatible.
Breaking changes would result in a <strong>Major</strong> version bump. At a minimum you should use a
The <strong>Major</strong> tag is recommended. It is the most up-to-date and always backwards compatible. Breaking
changes would result in a <strong>Major</strong> version bump. At a minimum you should use a
<strong>Minor</strong> tag.
</p>

<h3 id="tags-security-notice" tabindex="-1">
Tags Security Notice
<a class="header-anchor" href="#tags-security-notice" aria-label='Permalink to "Tags Security Notice"'
>​</a
>
<a class="header-anchor" href="#tags-security-notice" aria-label='Permalink to "Tags Security Notice"'>​</a>
</h3>

<p>
As shown above, tags are mutable; however, <strong>commit hashes are not</strong>. Therefore, if security
is your top priority, you should pin your actions to a specific commit hash.
As shown above, tags are mutable; however, <strong>commit hashes are not</strong>. Therefore, if security is your
top priority, you should pin your actions to a specific commit hash.
</p>

<ul>
Expand Down Expand Up @@ -127,9 +125,7 @@ const props = defineProps({
</p>
<p>
I also created
<a href="https://github.com/cssnr/actions-up-action" target="_blank" rel="noreferrer"
>cssnr/actions-up-action</a
>
<a href="https://github.com/cssnr/actions-up-action" target="_blank" rel="noreferrer">cssnr/actions-up-action</a>
that will run this for you automatically and generate a markdown table for pull requests.
</p>

Expand Down
Loading