mirror of
https://github.com/lklynet/hypermind.git
synced 2026-05-03 09:30:36 +00:00
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:
@@ -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
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user