Skip to content

Commit 8c88beb

Browse files
authored
Update Workflows (#4)
1 parent 057f6d4 commit 8c88beb

9 files changed

Lines changed: 146 additions & 133 deletions

File tree

.github/workflows/labeler.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ name: "PR Labeler"
33
on:
44
pull_request_target:
55

6-
permissions:
7-
pull-requests: write
8-
96
jobs:
107
labeler:
118
name: "Labeler"
129
runs-on: ubuntu-latest
1310
timeout-minutes: 5
1411

12+
permissions:
13+
pull-requests: write
14+
issues: write
15+
1516
steps:
1617
- name: "Checkout Configs"
1718
uses: actions/checkout@v5
@@ -36,7 +37,7 @@ jobs:
3637
3738
- name: "Label Creator"
3839
continue-on-error: true
39-
uses: cssnr/label-creator-action@master
40+
uses: cssnr/label-creator-action@v1
4041
with:
4142
file: .configs/labels/labels.yaml
4243

.github/workflows/lint.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ concurrency:
1010
group: ${{ github.workflow }}-${{ github.ref }}
1111
cancel-in-progress: true
1212

13-
permissions:
14-
pull-requests: write
15-
1613
jobs:
1714
lint:
1815
name: "Lint"
1916
runs-on: ubuntu-latest
2017
timeout-minutes: 5
2118

19+
permissions:
20+
pull-requests: write
21+
2222
steps:
2323
- name: "Checkout"
2424
uses: actions/checkout@v5
@@ -78,6 +78,11 @@ jobs:
7878
with:
7979
scandir: src
8080

81+
- name: "Verify action.yml"
82+
if: ${{ !cancelled() }}
83+
run: |
84+
yq -e '.runs.main | test("^dist/")' action.yml
85+
8186
- name: "Check Build Action"
8287
if: ${{ !cancelled() }}
8388
uses: cssnr/check-build-action@v1

.github/workflows/pull.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
name: "Pull"
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 5
15+
1516
permissions:
1617
pull-requests: write
1718

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
name: "Release"
1010
runs-on: ubuntu-latest
1111
timeout-minutes: 5
12+
1213
permissions:
1314
contents: write
1415

.github/workflows/tags.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
name: "Tags"
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 5
15+
1516
permissions:
1617
contents: write
1718

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ on:
77
push:
88
branches: ["**"]
99
paths:
10+
- ".github/workflows/test.yaml"
1011
- "dist/**"
1112
- "src/**"
12-
- ".github/workflows/test.yaml"
13-
- "Dockerfile"
1413
- "package*.json"
1514
- "requirements*.txt"
1615
- "action.yaml"
16+
- "Dockerfile"
1717

1818
jobs:
1919
test:

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=cssnr_docker-context-action&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=cssnr_docker-context-action)
99
[![GitHub Last Commit](https://img.shields.io/github/last-commit/cssnr/docker-context-action?logo=github&label=updated)](https://github.com/cssnr/docker-context-action/pulse)
1010
[![Codeberg Last Commit](https://img.shields.io/gitea/last-commit/cssnr/docker-context-action/master?gitea_url=https%3A%2F%2Fcodeberg.org%2F&logo=codeberg&logoColor=white&label=updated)](https://codeberg.org/cssnr/docker-context-action)
11-
[![GitHub Contributors](https://img.shields.io/github/contributors/cssnr/docker-context-action?logo=github)](https://github.com/cssnr/docker-context-action/graphs/contributors)
11+
[![GitHub Contributors](https://img.shields.io/github/contributors-anon/cssnr/docker-context-action?logo=github)](https://github.com/cssnr/docker-context-action/graphs/contributors)
1212
[![GitHub Repo Size](https://img.shields.io/github/repo-size/cssnr/docker-context-action?logo=bookstack&logoColor=white&label=repo%20size)](https://github.com/cssnr/docker-context-action?tab=readme-ov-file#readme)
1313
[![GitHub Top Language](https://img.shields.io/github/languages/top/cssnr/docker-context-action?logo=sharp&logoColor=white)](https://github.com/cssnr/docker-context-action)
1414
[![GitHub Discussions](https://img.shields.io/github/discussions/cssnr/docker-context-action?logo=github)](https://github.com/cssnr/docker-context-action/discussions)
@@ -179,7 +179,8 @@ For more information, see the CSSNR [CONTRIBUTING.md](https://github.com/cssnr/.
179179
Additionally, you can support other GitHub Actions I have published:
180180

181181
- [Stack Deploy Action](https://github.com/cssnr/stack-deploy-action?tab=readme-ov-file#readme)
182-
- [Portainer Stack Deploy](https://github.com/cssnr/portainer-stack-deploy-action?tab=readme-ov-file#readme)
182+
- [Portainer Stack Deploy Action](https://github.com/cssnr/portainer-stack-deploy-action?tab=readme-ov-file#readme)
183+
- [Docker Context Action](https://github.com/cssnr/docker-context-action?tab=readme-ov-file#readme)
183184
- [VirusTotal Action](https://github.com/cssnr/virustotal-action?tab=readme-ov-file#readme)
184185
- [Mirror Repository Action](https://github.com/cssnr/mirror-repository-action?tab=readme-ov-file#readme)
185186
- [Update Version Tags Action](https://github.com/cssnr/update-version-tags-action?tab=readme-ov-file#readme)

0 commit comments

Comments
 (0)