commit ead2e9b9f57387d6ffbb2cc3c892d786809d77f3
parent 169e23a0f0743e0e66e2245d5e8ac5a59496161e
Author: finwo <finwo@pm.me>
Date: Sat, 14 Mar 2026 17:10:52 +0100
Fuck it, automated tag creation then
Diffstat:
2 files changed, 30 insertions(+), 14 deletions(-)
diff --git a/.github/workflows/edge.yml b/.github/workflows/edge.yml
@@ -0,0 +1,27 @@
+name: Release Edge
+
+on:
+ push:
+ branches:
+ - main
+ - rewrite-c
+
+jobs:
+ edge:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Update action.yml with edge tag
+ run: |
+ sed -i 's/TAG="[^"]*"/TAG="edge"/' action.yml
+
+ - name: Commit and tag
+ run: |
+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
+ git config --local user.name "github-actions[bot]"
+ git add action.yml
+ git commit -m "Release: update edge tag to edge" || echo "No changes to commit"
+ git tag -f edge
+ git push -f origin edge
diff --git a/action.yml b/action.yml
@@ -1,15 +1,6 @@
name: Setup DEP package manager
description: Installs the DEP package manager into the runner
-outputs:
- artifact-url:
- description: "URL of the artifact from this action's release"
- value: ${{ format('https://github.com/{0}/releases/download/{1}/dep-{2}-{3}.zip',
- 'finwo/dep',
- replace(github.action_ref, '^refs/tags/', ''),
- runner.os,
- runner.arch) }}
-
runs:
using: composite
steps:
@@ -28,15 +19,13 @@ runs:
id: download
shell: bash
run: |
+ TAG="edge"
+ REPO="finwo/dep"
ARTIFACT="${{ steps.platform.outputs.artifact_name }}"
- TAG="${{ replace(github.action_ref, '^refs/tags/', '') }}"
- if [ -z "$TAG" ]; then
- TAG="main"
- fi
mkdir -p "${GITHUB_ACTION_PATH}/dist"
- DOWNLOAD_URL="https://github.com/finwo/dep/releases/download/${TAG}/${ARTIFACT}"
+ DOWNLOAD_URL="https://github.com/${REPO}/releases/download/${TAG}/${ARTIFACT}"
if curl -sI "$DOWNLOAD_URL" | head -1 | grep -q "200"; then
echo "Downloading $ARTIFACT from release $TAG"