Skip to content

Commit 0567f1a

Browse files
committed
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
1 parent f9ca903 commit 0567f1a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/virustotal.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
steps:
1515
- name: Checkout repository
1616
uses: actions/checkout@v4
17+
with:
18+
ref: ${{ github.ref_name }}
1719

1820
- name: Set up Docker Buildx
1921
uses: docker/setup-buildx-action@v3
@@ -86,6 +88,7 @@ jobs:
8688
run: |
8789
git config user.name "github-actions[bot]"
8890
git config user.email "github-actions[bot]@users.noreply.github.com"
91+
git switch ${{ github.ref_name }}
8992
git add .github/badges/virustotal.json
9093
git diff --staged --quiet || git commit -m "Update VirusTotal badge [skip ci]"
9194
git push

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hypermind",
3-
"version": "0.12.1",
3+
"version": "0.12.2",
44
"description": "A decentralized P2P counter of active deployments",
55
"main": "server.js",
66
"scripts": {

0 commit comments

Comments
 (0)