Skip to content

Commit 36a14dd

Browse files
authored
Update Workflows and Configs (#26)
1 parent 3718ff4 commit 36a14dd

10 files changed

Lines changed: 448 additions & 364 deletions

File tree

.github/workflows/labeler.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "PR Labeler"
2+
3+
on:
4+
pull_request_target:
5+
6+
permissions:
7+
pull-requests: write
8+
9+
jobs:
10+
labeler:
11+
name: "Labeler"
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 5
14+
15+
steps:
16+
- name: "Checkout Configs"
17+
uses: actions/checkout@v5
18+
with:
19+
repository: cssnr/configs
20+
ref: master
21+
path: .configs
22+
sparse-checkout-cone-mode: false
23+
sparse-checkout: |
24+
labels/**
25+
26+
- name: "Debug"
27+
continue-on-error: true
28+
run: |
29+
echo "::group::labels.yaml"
30+
cat .configs/labels/labels.yaml
31+
echo "::endgroup::"
32+
33+
echo "::group::labeler.yaml"
34+
cat .configs/labels/labeler.yaml
35+
echo "::endgroup::"
36+
37+
- name: "Label Creator"
38+
continue-on-error: true
39+
uses: cssnr/label-creator-action@master
40+
with:
41+
file: .configs/labels/labels.yaml
42+
43+
- name: "Labeler"
44+
uses: actions/labeler@v6
45+
with:
46+
sync-labels: true
47+
configuration-path: .configs/labels/labeler.yaml

.github/workflows/lint.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ jobs:
2020
- name: "Checkout"
2121
uses: actions/checkout@v5
2222

23-
- name: "Setup Node 22"
23+
- name: "Setup Node 24"
2424
uses: actions/setup-node@v5
2525
with:
26-
node-version: 22
27-
#cache: npm
26+
node-version: 24
2827

2928
- name: "Install"
3029
id: install

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ eslint_report.json
1111
# Build
1212
dist/
1313
node_modules/
14+
.github/disabled/
1415

1516
# Files
1617
.github/pull_request_template.md

.prettierrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"trailingComma": "es5",
33
"semi": false,
44
"singleQuote": true,
5+
"printWidth": 90,
56
"overrides": [
67
{
78
"files": ["**/*.html", "**/*.yaml", "**/*.yml"],
@@ -10,7 +11,7 @@
1011
}
1112
},
1213
{
13-
"files": ["**/*.js", "**/*.css", "**/*.scss"],
14+
"files": ["**/*.js", "**/*.mjs", "**/*.css", "**/*.scss"],
1415
"options": {
1516
"tabWidth": 4
1617
}

README.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
[![GitHub Tag Major](https://img.shields.io/github/v/tag/cssnr/update-version-tags-action?sort=semver&filter=!v*.*&logo=git&logoColor=white&labelColor=585858&label=%20)](https://github.com/cssnr/update-version-tags-action/tags)
2-
[![GitHub Tag Minor](https://img.shields.io/github/v/tag/cssnr/update-version-tags-action?sort=semver&filter=!v*.*.*&logo=git&logoColor=white&labelColor=585858&label=%20)](https://github.com/cssnr/update-version-tags-action/tags)
2+
[![GitHub Tag Minor](https://img.shields.io/github/v/tag/cssnr/update-version-tags-action?sort=semver&filter=!v*.*.*&logo=git&logoColor=white&labelColor=585858&label=%20)](https://github.com/cssnr/update-version-tags-action/releases)
33
[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/update-version-tags-action?logo=git&logoColor=white&labelColor=585858&label=%20)](https://github.com/cssnr/update-version-tags-action/releases/latest)
4-
[![GitHub Dist Size](https://img.shields.io/github/size/cssnr/update-version-tags-action/dist%2Findex.js?label=dist%20size)](https://github.com/cssnr/update-version-tags-action/blob/master/src/index.js)
4+
[![GitHub Dist Size](https://img.shields.io/github/size/cssnr/update-version-tags-action/dist%2Findex.js?logo=bookstack&logoColor=white&label=dist%20size)](https://github.com/cssnr/update-version-tags-action/blob/master/src)
55
[![Workflow Release](https://img.shields.io/github/actions/workflow/status/cssnr/update-version-tags-action/release.yaml?logo=cachet&label=release)](https://github.com/cssnr/update-version-tags-action/actions/workflows/release.yaml)
66
[![Workflow Test](https://img.shields.io/github/actions/workflow/status/cssnr/update-version-tags-action/test.yaml?logo=cachet&label=test)](https://github.com/cssnr/update-version-tags-action/actions/workflows/test.yaml)
77
[![Workflow Lint](https://img.shields.io/github/actions/workflow/status/cssnr/update-version-tags-action/lint.yaml?logo=cachet&label=lint)](https://github.com/cssnr/update-version-tags-action/actions/workflows/lint.yaml)
88
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=cssnr_update-version-tags-action&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=cssnr_update-version-tags-action)
99
[![GitHub Last Commit](https://img.shields.io/github/last-commit/cssnr/update-version-tags-action?logo=github&label=updated)](https://github.com/cssnr/update-version-tags-action/pulse)
1010
[![Codeberg Last Commit](https://img.shields.io/gitea/last-commit/cssnr/update-version-tags-action/master?gitea_url=https%3A%2F%2Fcodeberg.org%2F&logo=codeberg&logoColor=white&label=updated)](https://codeberg.org/cssnr/update-version-tags-action)
11-
[![GitHub Repo Size](https://img.shields.io/github/repo-size/cssnr/update-version-tags-action?logo=bookstack&logoColor=white&label=repo%20size)](https://github.com/cssnr/update-version-tags-action)
11+
[![GitHub Contributors](https://img.shields.io/github/contributors/cssnr/update-version-tags-action?logo=github)](https://github.com/cssnr/update-version-tags-action/graphs/contributors)
12+
[![GitHub Repo Size](https://img.shields.io/github/repo-size/cssnr/update-version-tags-action?logo=bookstack&logoColor=white&label=repo%20size)](https://github.com/cssnr/update-version-tags-action?tab=readme-ov-file#readme)
1213
[![GitHub Top Language](https://img.shields.io/github/languages/top/cssnr/update-version-tags-action?logo=htmx)](https://github.com/cssnr/update-version-tags-action)
1314
[![GitHub Forks](https://img.shields.io/github/forks/cssnr/update-version-tags-action?style=flat&logo=github)](https://github.com/cssnr/update-version-tags-action/forks)
1415
[![GitHub Repo Stars](https://img.shields.io/github/stars/cssnr/update-version-tags-action?style=flat&logo=github)](https://github.com/cssnr/update-version-tags-action/stargazers)
@@ -52,16 +53,16 @@ For more details see [src/index.js](src/index.js) and [action.yml](action.yml).
5253
5354
## Inputs
5455
55-
| Input | Req. | Default Value | Input Description |
56-
| :-------- | :--: | :----------------- | :-------------------------------- |
57-
| `prefix` | - | `v` | Tag Prefix for Semantic Versions |
58-
| `major` | - | `true` | Update Major Tag \* |
59-
| `minor` | - | `true` | Update Minor Tag \* |
60-
| `tags` | - | - | Additional Tags to Update \* |
61-
| `tag` | - | `github.ref_name` | Manually Set Target Tag \*\* |
62-
| `summary` | - | `true` | Add Summary to Job \* |
63-
| `dry_run` | - | `false` | Do not Create Tags, Outout Only |
64-
| `token` | - | `github.token` | For use with a PAT to Rollback \* |
56+
| Input | Default Value | Description of Input |
57+
| :-------: | :----------------- | :------------------------------- |
58+
| `prefix` | `v` | Tag Prefix for Semantic Versions |
59+
| `major` | `true` | Update Major Tag \* |
60+
| `minor` | `true` | Update Minor Tag \* |
61+
| `tags` | - | Additional Tags to Update \* |
62+
| `tag` | `github.ref_name` | Manually Set Target Tag \*\* |
63+
| `summary` | `true` | Add Summary to Job \* |
64+
| `dry_run` | `false` | Do not Create Tags, Outout Only |
65+
| `token` | `github.token` | For use with a PAT to Rollback |
6566

6667
**major/minor:** Both major and minor versions are parsed from the release tag using `semver`. If you release
6768
version `1.0.0` this will update or create a reference for `v1` and `v1.0`. If you are not using semantic versions, set
@@ -327,5 +328,8 @@ Additionally, you can support other GitHub Actions I have published:
327328
- [Docker Tags Action](https://github.com/cssnr/docker-tags-action?tab=readme-ov-file#readme)
328329
- [Package Changelog Action](https://github.com/cssnr/package-changelog-action?tab=readme-ov-file#readme)
329330
- [NPM Outdated Check Action](https://github.com/cssnr/npm-outdated-action?tab=readme-ov-file#readme)
331+
- [Label Creator Action](https://github.com/cssnr/label-creator-action?tab=readme-ov-file#readme)
332+
- [Algolia Crawler Action](https://github.com/cssnr/algolia-crawler-action?tab=readme-ov-file#readme)
333+
- [Upload Release Action](https://github.com/cssnr/upload-release-action?tab=readme-ov-file#readme)
330334

331335
For a full list of current projects visit: [https://cssnr.github.io/](https://cssnr.github.io/)

0 commit comments

Comments
 (0)