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
18 changes: 11 additions & 7 deletions .github/ISSUE_TEMPLATE/0-bug.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: "⚠️ Report an Issue"
description: "Please let us know if something is not working right..."
description: "Please let us know if something is not right..."
labels: ["bug"]
assignees:
- smashedr

body:
- type: markdown
attributes:
value: |
All issues will be responded too.

- type: input
id: website
validations:
Expand All @@ -18,9 +23,9 @@ body:
validations:
required: true
attributes:
label: Issue Description
description: Please describe the issue you are experiencing and how it can be reproduced.
placeholder: Provide as many details as possible...
label: Details
description: Please describe the issue you are experiencing and how to reproduce.
placeholder: Provide as many details as you can...

- type: textarea
id: logs
Expand All @@ -29,11 +34,10 @@ body:
attributes:
label: Log Output
description: Paste any relevant logs or output in this box.
placeholder: This text is automatically wrapped in a code block.
placeholder: Output is automatically wrapped in a code block.
render: shell

- type: markdown
attributes:
value: |
Any issues or bugs that can be verified will be fixed!
Thank you very much for taking the time to make this report...
Thank you for taking the time to make this report!
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/1-feature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "💡 Request a Feature"
description: "Request new features or enhancements"
labels: ["enhancement"]
assignees:
- smashedr

body:
- type: markdown
attributes:
value: |
All requests will be responded too.

- type: textarea
id: description
validations:
required: true
attributes:
label: Details
description: Please describe the feature or enhancement you are requesting and what it should do.
placeholder: Provide as many details as you can...

- type: markdown
attributes:
value: |
Thank you for taking the time to make this report!
18 changes: 7 additions & 11 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
blank_issues_enabled: true
contact_links:
- name: "💡 Request a Feature"
about: Request a new feature or enhancement in a discussions.
url: https://github.com/cssnr/draft-release-action/discussions/new?category=feature-requests

- name: "❔ Ask a Question"
about: Ask a general question or start a discussions.
url: https://github.com/cssnr/draft-release-action/discussions/new?category=q-a
- name: "❔ Start a Discussion"
about: Ask a general question or start a discussion
url: https://github.com/cssnr/draft-release/discussions/new?category=q-a

- name: "💬 Join Discord"
about: Chat with us about general questions, issues or suggestions.
about: Chat with us about anything
url: https://discord.gg/wXy6m2X8wY

- name: "📝 Submit Feedback"
about: Send general feedback through the website.
url: https://cssnr.github.io/feedback
- name: "🌐 Visit Actions Site"
about: Browse more Actions
url: https://actions.cssnr.com/
4 changes: 3 additions & 1 deletion .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
paths:
.github/workflows/**/*.{yml,yaml}:
ignore:
- 'invalid runner name "node24" at runs.using'
- '"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'
73 changes: 73 additions & 0 deletions .github/workflows/check-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: "Check Build"

on:
workflow_dispatch:
push:
branches: [master]
pull_request_target:
paths:
- ".github/workflows/check-build.yaml"
- "dist/**"
- "src/**"
- "package*.json"
- "rollup.config.*"

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

jobs:
check-build:
name: "Check Build"
runs-on: ubuntu-latest
timeout-minutes: 5

permissions:
pull-requests: write
issues: write

steps:
- 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: "Checkout Pull"
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: "Setup Node 24"
uses: actions/setup-node@v6
with:
node-version: 24

#- name: "Setup NPM"
# run: |
# npm install -g npm@11.11.1

- name: "Debug"
continue-on-error: true
run: |
node --version
npm --version
echo "::group::ls"
ls -lAh
echo "::endgroup::"
echo "::group::tree"
tree .
echo "::endgroup::"

- name: "Check Build Action"
continue-on-error: true
uses: cssnr/check-build-action@v1
6 changes: 5 additions & 1 deletion .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 Down
48 changes: 15 additions & 33 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "Lint"

on:
workflow_dispatch:
pull_request:
push:
branches: [master]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -13,18 +13,21 @@ concurrency:
jobs:
lint:
name: "Lint"
if: ${{ !contains(github.event.head_commit.message, '#nolint') }}
runs-on: ubuntu-latest
timeout-minutes: 5

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@v5
uses: actions/setup-node@v6
with:
node-version: 24

Expand All @@ -33,53 +36,32 @@ jobs:
run: |
npm ci

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

- name: "Prettier"
- name: "prettier"
if: ${{ !cancelled() }}
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() }}
run: |
echo "::group::Download"
loc=$(curl -sI https://github.com/rhysd/actionlint/releases/latest | grep -i '^location:')
echo "loc: ${loc}"
tag=$(echo "${loc}" | sed -E 's|.*/tag/v?(.*)|\1|' | tr -d '\t\r\n')
echo "tag: ${tag}"
url="https://github.com/rhysd/actionlint/releases/latest/download/actionlint_${tag}_linux_amd64.tar.gz"
echo "url: ${url}"
curl -sL "${url}" | tar xz -C "${RUNNER_TEMP}" actionlint
file "${RUNNER_TEMP}/actionlint"
"${RUNNER_TEMP}/actionlint" --version
echo "::endgroup::"
"${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=
uses: cssnr/actionlint-action@v1

- name: "Verify action.yml"
if: ${{ !cancelled() }}
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
2 changes: 1 addition & 1 deletion .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

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

Expand Down
33 changes: 29 additions & 4 deletions .github/workflows/pull.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Pull"

on:
pull_request:
pull_request_target:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -15,11 +15,36 @@ jobs:

permissions:
pull-requests: write
issues: write

steps:
- name: "Checkout"
uses: actions/checkout@v5
- name: "Debug CTX github"
continue-on-error: true
env:
GITHUB_CTX: ${{ toJSON(github) }}
run: echo "$GITHUB_CTX"

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

- name: "Debug"
continue-on-error: true
run: |
echo "::group::ls"
ls -lAh .
echo "::endgroup::"
echo "::group::tree"
tree .
echo "::endgroup::"

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

- name: "Actions Up"
continue-on-error: true
uses: cssnr/actions-up-action@v1
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@v2
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@v2

- name: "Send Failure Notification"
if: ${{ failure() }}
uses: sarisia/actions-status-discord@v1
uses: sarisia/actions-status-discord@eb045afee445dc055c18d3d90bd0f244fd062708 # v1.16.0
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: ${{ github.server_url }}/${{ github.repository }}/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@v2
with:
tag: ${{ inputs.tag }}
token: ${{ secrets.GH_PAT }}
Loading
Loading