From 5183b434118ace7ce540744efaf2d088e3c8c50d Mon Sep 17 00:00:00 2001
From: Shane <6071159+smashedr@users.noreply.github.com>
Date: Thu, 27 Nov 2025 09:02:36 -0800
Subject: [PATCH 1/3] Update Workflows
---
.github/workflows/labeler.yaml | 8 ++++--
.github/workflows/lint.yaml | 22 +++++++++++----
.github/workflows/mirror.yaml | 4 +--
.github/workflows/pull.yaml | 50 ++++++++++++++++++++++++++++++++++
.github/workflows/release.yaml | 12 ++++++--
.github/workflows/tags.yaml | 2 +-
README.md | 29 +++++++++++---------
7 files changed, 101 insertions(+), 26 deletions(-)
create mode 100644 .github/workflows/pull.yaml
diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml
index eb36453..6f280f5 100644
--- a/.github/workflows/labeler.yaml
+++ b/.github/workflows/labeler.yaml
@@ -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"
@@ -15,7 +19,7 @@ jobs:
steps:
- name: "Checkout Configs"
- uses: actions/checkout@v5
+ uses: actions/checkout@v6
with:
repository: cssnr/configs
ref: master
@@ -37,7 +41,7 @@ jobs:
- name: "Label Creator"
continue-on-error: true
- uses: cssnr/label-creator-action@v1
+ uses: cssnr/label-creator-action@latest
with:
file: .configs/labels/labels.yaml
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml
index 575127e..b880790 100644
--- a/.github/workflows/lint.yaml
+++ b/.github/workflows/lint.yaml
@@ -2,9 +2,9 @@ name: "Lint"
on:
workflow_dispatch:
- pull_request:
push:
branches: [master]
+ pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -18,17 +18,27 @@ jobs:
permissions:
pull-requests: write
+ statuses: write
+ checks: write
steps:
- name: "Checkout"
uses: actions/checkout@v5
+ #- name: "Debug event.json"
+ # continue-on-error: true
+ # run: cat "${GITHUB_EVENT_PATH}"
+
#- name: "Debug CTX github"
# continue-on-error: true
# env:
# GITHUB_CTX: ${{ toJSON(github) }}
# run: echo "$GITHUB_CTX"
+ #- name: "Debug Environment"
+ # continue-on-error: true
+ # run: env
+
- name: "ShellCheck"
if: ${{ !cancelled() }}
uses: ludeeus/action-shellcheck@master
@@ -37,7 +47,7 @@ jobs:
with:
scandir: src
- - name: "Prettier"
+ - name: "prettier"
if: ${{ !cancelled() }}
run: |
echo "::group::Install"
@@ -45,7 +55,7 @@ jobs:
echo "::endgroup::"
npx prettier --check .
- - name: "Yamllint"
+ - name: "yamllint"
if: ${{ !cancelled() }}
env:
CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
@@ -55,7 +65,7 @@ jobs:
echo "::endgroup::"
yamllint -d '${{ env.CONFIG }}' .
- - name: "Actionlint"
+ - name: "actionlint"
if: ${{ !cancelled() }}
run: |
echo "::group::Download"
@@ -71,9 +81,9 @@ jobs:
echo "::endgroup::"
"${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=
- - name: "Hadolint"
+ - name: "hadolint"
if: ${{ !cancelled() }}
- uses: hadolint/hadolint-action@v3.1.0
+ uses: hadolint/hadolint-action@v3.3.0
with:
dockerfile: Dockerfile
ignore: DL3018
diff --git a/.github/workflows/mirror.yaml b/.github/workflows/mirror.yaml
index 00bdae6..6e90954 100644
--- a/.github/workflows/mirror.yaml
+++ b/.github/workflows/mirror.yaml
@@ -18,12 +18,12 @@ jobs:
steps:
- name: "Checkout"
- uses: actions/checkout@v5
+ uses: actions/checkout@v6
with:
fetch-depth: 0
- name: "Mirror to Codeberg"
- uses: cssnr/mirror-repository-action@v1
+ uses: cssnr/mirror-repository-action@latest
with:
host: https://codeberg.org
create: true
diff --git a/.github/workflows/pull.yaml b/.github/workflows/pull.yaml
new file mode 100644
index 0000000..567450e
--- /dev/null
+++ b/.github/workflows/pull.yaml
@@ -0,0 +1,50 @@
+name: "Pull"
+
+on:
+ pull_request_target:
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ pull:
+ name: "Pull"
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+
+ permissions:
+ pull-requests: write
+ issues: write
+
+ steps:
+ - 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@latest
+
+ - name: "Actions Up"
+ continue-on-error: true
+ uses: cssnr/actions-up-action@latest
+ with:
+ exclude: "cssnr/.*,actions/.*"
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index e4c13b4..03c7cc3 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -16,7 +16,9 @@ jobs:
steps:
- name: "Update Tags"
id: tags
- uses: cssnr/update-version-tags-action@v1
+ uses: cssnr/update-version-tags-action@latest
+ with:
+ tags: "latest"
- name: "Debug Tags"
continue-on-error: true
@@ -30,9 +32,15 @@ jobs:
with:
tags: ${{ steps.tags.outputs.tags }}
location: tail
+ type: "actions"
+
+ #- name: "Package Changelog Action"
+ # continue-on-error: true
+ # uses: cssnr/package-changelog-action@latest
- name: "Send Failure Notification"
if: ${{ failure() }}
- uses: sarisia/actions-status-discord@v1
+ uses: sarisia/actions-status-discord@b8381b25576cb341b2af39926ab42c5056cc44ed # v1.15.5
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
+ description: ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}
diff --git a/.github/workflows/tags.yaml b/.github/workflows/tags.yaml
index 38b5c74..a2ee80c 100644
--- a/.github/workflows/tags.yaml
+++ b/.github/workflows/tags.yaml
@@ -18,7 +18,7 @@ jobs:
steps:
- name: "Update Tags"
- uses: cssnr/update-version-tags-action@v1
+ uses: cssnr/update-version-tags-action@latest
with:
tag: ${{ inputs.tag }}
token: ${{ secrets.GH_PAT }}
diff --git a/README.md b/README.md
index 24f0a41..2f98afe 100644
--- a/README.md
+++ b/README.md
@@ -7,9 +7,9 @@
[](https://github.com/cssnr/stack-deploy-action/pulse)
[](https://codeberg.org/cssnr/stack-deploy-action)
[](https://docker-deploy.cssnr.com/)
-[](https://github.com/cssnr/stack-deploy-action/graphs/contributors)
[](https://github.com/cssnr/stack-deploy-action?tab=readme-ov-file#readme)
[](https://github.com/cssnr/stack-deploy-action)
+[](https://github.com/cssnr/stack-deploy-action/graphs/contributors)
[](https://github.com/cssnr/stack-deploy-action/discussions)
[](https://github.com/cssnr/stack-deploy-action/forks)
[](https://github.com/cssnr/stack-deploy-action/stargazers)
@@ -19,6 +19,9 @@
# Docker Stack Deploy Action
+
+
+
- [Features](#Features)
- [Inputs](#Inputs)
- [Examples](#Examples)
@@ -26,10 +29,6 @@
- [Support](#Support)
- [Contributing](#Contributing)
-