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
This commit is contained in:
lklynet
2026-01-12 10:48:59 -05:00
parent f9ca9039b3
commit 0567f1a3d1
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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
+1 -1
View File
@@ -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": {