forked from External/mediamtx
temp
This commit is contained in:
parent
f6b0a72453
commit
a16ef00e88
2 changed files with 19 additions and 3 deletions
11
.github/workflows/code_test.yml
vendored
11
.github/workflows/code_test.yml
vendored
|
|
@ -11,7 +11,7 @@ jobs:
|
|||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- run: make test
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ jobs:
|
|||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- run: make test32
|
||||
|
||||
|
|
@ -31,10 +31,15 @@ jobs:
|
|||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: "1.22"
|
||||
|
||||
- name: GitHub Tag Name example
|
||||
run: |
|
||||
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
|
||||
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
|
||||
|
||||
- run: make test-highlevel-nodocker
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ package main
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"log"
|
||||
"os"
|
||||
|
|
@ -19,7 +20,17 @@ const version = "{{ .Version }}"
|
|||
func do() error {
|
||||
log.Println("getting version...")
|
||||
|
||||
temp, _ := exec.Command("git", "status").CombinedOutput()
|
||||
/*if err != nil {
|
||||
return err
|
||||
}*/
|
||||
|
||||
fmt.Println(string(temp))
|
||||
|
||||
stdout, err := exec.Command("git", "describe", "--tags").Output()
|
||||
|
||||
fmt.Println(string(stdout))
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue