Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ‘· Updates versions for GH actions

Alicia Sykes742335ba3a13
diff --git a/.github/workflows/bump-and-tag.yml b/.github/workflows/bump-and-tag.yml
index 9123b2b6..cc05dd88 100644
--- a/.github/workflows/bump-and-tag.yml
+++ b/.github/workflows/bump-and-tag.yml
@@ -124,7 +124,7 @@ jobs:
run: |
npm version patch --no-git-tag-version
git add package.json
- git commit -m "⬆️ Bump version to $(node -p "require('./package.json').version")"
+ git commit -m "πŸ”– Bump version to $(node -p "require('./package.json').version")"
git push
- name: Create and push tag 🏷️
diff --git a/.github/workflows/docker-build-publish.yml b/.github/workflows/docker-build-publish.yml
index b1112533..2b3c7684 100644
--- a/.github/workflows/docker-build-publish.yml
+++ b/.github/workflows/docker-build-publish.yml
@@ -23,11 +23,11 @@ jobs:
steps:
- name: πŸ›ŽοΈ Checkout Repo
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: πŸ—‚οΈ Make Docker Meta
id: meta
- uses: docker/metadata-action@v5
+ uses: docker/metadata-action@v6
with:
images: |
${{ env.DH_IMAGE }}
@@ -48,31 +48,31 @@ jobs:
org.opencontainers.image.licenses=MIT
- name: πŸ”§ Set up QEMU
- uses: docker/setup-qemu-action@v3
+ uses: docker/setup-qemu-action@v4
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
- name: πŸ”§ Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
+ uses: docker/setup-buildx-action@v4
- name: πŸ”‘ Login to DockerHub
- uses: docker/login-action@v3
+ uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: πŸ”‘ Login to GitHub Container Registry
- uses: docker/login-action@v3
+ uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: 🚦 Check Registry Status
- uses: crazy-max/ghaction-docker-status@v3
+ uses: crazy-max/ghaction-docker-status@v4
- name: βš’οΈ Build and push
- uses: docker/build-push-action@v6
+ uses: docker/build-push-action@v7
with:
context: .
file: ./Dockerfile
diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml
index ea01e183..7fc6fe18 100644
--- a/.github/workflows/draft-release.yml
+++ b/.github/workflows/draft-release.yml
@@ -10,48 +10,94 @@ on:
description: 'Tag to draft a release for (must already exist)'
required: true
+permissions:
+ contents: write
+
jobs:
create-draft-release:
runs-on: ubuntu-latest
+ env:
+ TAG: ${{ github.event.inputs.tag || github.ref_name }}
steps:
- name: Checkout code πŸ›ŽοΈ
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Check if major or minor version changed πŸ”
id: version_check
+ env:
+ CURRENT_TAG: ${{ github.event.inputs.tag || github.ref_name }}
run: |
- CURRENT_TAG="${{ github.event.inputs.tag || github.ref_name }}"
git fetch --tags --force
- PREVIOUS_TAG=$(git tag --sort=-version:refname | grep -v "^${CURRENT_TAG}$" | head -1)
+ CURRENT_MM=$(echo "$CURRENT_TAG" | sed 's/^v//; s/\([0-9]*\.[0-9]*\)\..*/\1/')
+
+ # Find the immediately previous tag (to detect patch-only bumps)
+ PREVIOUS_TAG=$(git tag --sort=-version:refname \
+ | grep -v "^${CURRENT_TAG}$" | head -1)
+
if [ -z "$PREVIOUS_TAG" ]; then
echo "No previous tag found, creating release"
echo "should_release=true" >> $GITHUB_OUTPUT
+ echo "previous_tag=" >> $GITHUB_OUTPUT
exit 0
fi
- CURRENT_MM=$(echo "$CURRENT_TAG" | sed 's/^v//; s/\([0-9]*\.[0-9]*\)\..*/\1/')
+
PREVIOUS_MM=$(echo "$PREVIOUS_TAG" | sed 's/^v//; s/\([0-9]*\.[0-9]*\)\..*/\1/')
if [ "$CURRENT_MM" = "$PREVIOUS_MM" ]; then
- echo "Patch-only bump ($PREVIOUS_TAG -> $CURRENT_TAG), skipping release"
+ echo "Patch-only bump ($PREVIOUS_TAG -> $CURRENT_TAG), skipping"
echo "should_release=false" >> $GITHUB_OUTPUT
- else
- echo "Major or minor bump ($PREVIOUS_TAG -> $CURRENT_TAG), creating release"
- echo "should_release=true" >> $GITHUB_OUTPUT
+ echo "previous_tag=" >> $GITHUB_OUTPUT
+ exit 0
fi
- - name: Create Draft Release πŸ“
+ # Minor/major bump β€” find the last tag from the previous release
+ PREV_RELEASE_TAG=$(git tag --sort=-version:refname | while read -r t; do
+ [ "$t" = "$CURRENT_TAG" ] && continue
+ t_mm=$(echo "$t" | sed 's/^v//; s/\([0-9]*\.[0-9]*\)\..*/\1/')
+ if [ "$t_mm" != "$CURRENT_MM" ]; then echo "$t"; break; fi
+ done)
+ echo "Minor/major bump, comparing against ${PREV_RELEASE_TAG:-$PREVIOUS_TAG}"
+ echo "should_release=true" >> $GITHUB_OUTPUT
+ echo "previous_tag=${PREV_RELEASE_TAG:-$PREVIOUS_TAG}" >> $GITHUB_OUTPUT
+
+ - name: Create draft release πŸ“
if: steps.version_check.outputs.should_release == 'true' || github.event_name == 'workflow_dispatch'
id: create_release
uses: softprops/action-gh-release@v2
with:
- tag_name: ${{ github.event.inputs.tag || github.ref_name }}
- name: Release ${{ github.event.inputs.tag || github.ref_name }}
+ tag_name: ${{ env.TAG }}
+ name: Release ${{ env.TAG }}
draft: true
prerelease: false
generate_release_notes: true
+ previous_tag: ${{ steps.version_check.outputs.previous_tag }}
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
- - name: Output new release URL ↗️
- if: steps.create_release.outputs.url
- run: 'echo "Draft release URL: ${{ steps.create_release.outputs.url }}"'
+ - name: Job summary πŸ“‹
+ if: always()
+ env:
+ REPO_URL: ${{ github.server_url }}/${{ github.repository }}
+ SHOULD_RELEASE: ${{ steps.version_check.outputs.should_release }}
+ RELEASE_URL: ${{ steps.create_release.outputs.url }}
+ PREV_TAG: ${{ steps.version_check.outputs.previous_tag }}
+ run: |
+ {
+ echo "## πŸ—οΈ Draft Release"
+ echo ""
+ echo "| Step | Result |"
+ echo "|------|--------|"
+ echo "| Tag | [\`${TAG}\`](${REPO_URL}/releases/tag/${TAG}) |"
+
+ if [ -n "$PREV_TAG" ]; then
+ echo "| Compared against | [\`${PREV_TAG}\`](${REPO_URL}/releases/tag/${PREV_TAG}) |"
+ fi
+
+ if [ -n "$RELEASE_URL" ]; then
+ echo "| Draft release | βœ… [Review and publish](${RELEASE_URL}) |"
+ elif [ "$SHOULD_RELEASE" = "false" ]; then
+ echo "| Draft release | ⏭️ Skipped (patch-only bump) |"
+ else
+ echo "| Draft release | ❌ Failed |"
+ fi
+ } >> "$GITHUB_STEP_SUMMARY"
diff --git a/.github/workflows/manual-tag.yml b/.github/workflows/manual-tag.yml
index 8248180c..85cf5ff0 100644
--- a/.github/workflows/manual-tag.yml
+++ b/.github/workflows/manual-tag.yml
@@ -19,7 +19,7 @@ jobs:
steps:
- name: Check Out Repository πŸ›ŽοΈ
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
with:
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
fetch-depth: 0
diff --git a/.github/workflows/pr-quality-check.yml b/.github/workflows/pr-quality-check.yml
index e8a173ea..18b3ed00 100644
--- a/.github/workflows/pr-quality-check.yml
+++ b/.github/workflows/pr-quality-check.yml
@@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: πŸ›ŽοΈ Checkout Code
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: πŸ”§ Setup Node.js
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'yarn'
@@ -35,10 +35,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: πŸ›ŽοΈ Checkout Code
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: πŸ”§ Setup Node.js
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'yarn'
@@ -54,10 +54,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: πŸ›ŽοΈ Checkout Code
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: πŸ”§ Setup Node.js
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'yarn'
@@ -88,7 +88,7 @@ jobs:
continue-on-error: true
steps:
- name: πŸ›ŽοΈ Checkout Code
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: 🐳 Build & Test Docker Image
run: sh tests/docker-smoke-test.sh
@@ -101,10 +101,10 @@ jobs:
# continue-on-error: true
# steps:
# - name: πŸ›ŽοΈ Checkout Code
- # uses: actions/checkout@v4
+ # uses: actions/checkout@v6
#
# - name: πŸ”§ Setup Node.js
- # uses: actions/setup-node@v4
+ # uses: actions/setup-node@v6
# with:
# node-version: '20'
# cache: 'yarn'
diff --git a/.github/workflows/update-docs-site.yml b/.github/workflows/update-docs-site.yml
index c7f62a84..53faf44b 100644
--- a/.github/workflows/update-docs-site.yml
+++ b/.github/workflows/update-docs-site.yml
@@ -26,13 +26,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout master branch πŸ›ŽοΈ
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
with:
path: 'master-docs'
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
- name: Checkout WEBSITE/docs-site-source branch πŸ›ŽοΈ
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
with:
ref: 'WEBSITE/docs-site-source'
path: 'website-docs'
@@ -40,12 +40,12 @@ jobs:
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
- name: Install Python 🐍
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Setup Node.js 🟒
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v6
with:
node-version: '22'
diff --git a/.github/workflows/wiki-sync.yml b/.github/workflows/wiki-sync.yml
index f812712b..2d320b26 100644
--- a/.github/workflows/wiki-sync.yml
+++ b/.github/workflows/wiki-sync.yml
@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Upload Docs to GH Wiki
uses: docker://decathlon/wiki-page-creator-action:2.0.3
env: