From 0567f1a3d180a094100addd8d1dba0151f5eba8c Mon Sep 17 00:00:00 2001 From: lklynet Date: Mon, 12 Jan 2026 10:48:59 -0500 Subject: [PATCH] ci(virustotal): add ref specification and branch switching Ensure the workflow checks out and switches to the correct branch by explicitly specifying the ref and using git switch --- .github/workflows/virustotal.yml | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/virustotal.yml b/.github/workflows/virustotal.yml index d14474a..a70949f 100644 --- a/.github/workflows/virustotal.yml +++ b/.github/workflows/virustotal.yml @@ -14,6 +14,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + ref: ${{ github.ref_name }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -86,6 +88,7 @@ jobs: run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" + git switch ${{ github.ref_name }} git add .github/badges/virustotal.json git diff --staged --quiet || git commit -m "Update VirusTotal badge [skip ci]" git push diff --git a/package.json b/package.json index a757d61..bd07311 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hypermind", - "version": "0.12.1", + "version": "0.12.2", "description": "A decentralized P2P counter of active deployments", "main": "server.js", "scripts": {