Skip to content
Open
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
51 changes: 51 additions & 0 deletions .github/workflows/actions-up.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "Actions Up"

on:
workflow_call:
inputs:
exclude:
type: string
default: "cssnr/.*,actions/.*"

jobs:
actions-up:
name: "Actions Up"
runs-on: ubuntu-latest
timeout-minutes: 5

permissions:
pull-requests: write

steps:
- name: "Debug CTX github"
continue-on-error: true
env:
GITHUB_CTX: ${{ toJSON(github) }}
run: echo "$GITHUB_CTX"

- name: "Debug Checkout ref"
continue-on-error: true
run: |
echo "github.ref: ${{ github.ref }}"
echo "github.event.pull_request.head.sha: ${{ github.event.pull_request.head.sha }}"
echo "checkout ref: ${{ github.event.pull_request.head.sha || github.ref }}"

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

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

- name: "Actions Up"
uses: cssnr/actions-up-action@latest
with:
exclude: ${{ inputs.exclude }}
4 changes: 0 additions & 4 deletions .github/workflows/deploy-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ on:
path:
type: string

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

jobs:
deploy:
name: "Deploy"
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: "PR Labeler"

on:
workflow_call:

jobs:
labeler:
name: "Labeler"
runs-on: ubuntu-latest
timeout-minutes: 5

permissions:
issues: write
pull-requests: write

steps:
- name: "Checkout Configs"
uses: actions/checkout@v5
with:
repository: cssnr/configs
ref: master
path: .configs
sparse-checkout-cone-mode: false
sparse-checkout: |
labels/**

- name: "Debug"
continue-on-error: true
run: |
echo "::group::labels.yaml"
cat .configs/labels/labels.yaml
echo "::endgroup::"

echo "::group::labeler.yaml"
cat .configs/labels/labeler.yaml
echo "::endgroup::"

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

- name: "Labeler"
uses: actions/labeler@v6
with:
sync-labels: true
configuration-path: .configs/labels/labeler.yaml
4 changes: 0 additions & 4 deletions .github/workflows/npm-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ on:
secrets:
webhook:

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

jobs:
build:
name: "Build"
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/npm-outdated.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "NPM Outdated"

on:
workflow_call:

jobs:
npm-outdated:
name: "NPM Outdated"
runs-on: ubuntu-latest
timeout-minutes: 5

permissions:
pull-requests: write

steps:
- name: "Debug CTX github"
continue-on-error: true
env:
GITHUB_CTX: ${{ toJSON(github) }}
run: echo "$GITHUB_CTX"

- name: "Debug Checkout ref"
continue-on-error: true
run: |
echo "github.ref: ${{ github.ref }}"
echo "github.event.pull_request.head.sha: ${{ github.event.pull_request.head.sha }}"
echo "checkout ref: ${{ github.event.pull_request.head.sha || github.ref }}"

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

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

- name: "NPM Outdated Check"
uses: cssnr/npm-outdated-action@latest