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
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: make test
|
- run: make test
|
||||||
|
|
||||||
|
|
@ -23,7 +23,7 @@ jobs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: make test32
|
- run: make test32
|
||||||
|
|
||||||
|
|
@ -31,10 +31,15 @@ jobs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: "1.22"
|
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
|
- run: make test-highlevel-nodocker
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"fmt"
|
||||||
"html/template"
|
"html/template"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
@ -19,7 +20,17 @@ const version = "{{ .Version }}"
|
||||||
func do() error {
|
func do() error {
|
||||||
log.Println("getting version...")
|
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()
|
stdout, err := exec.Command("git", "describe", "--tags").Output()
|
||||||
|
|
||||||
|
fmt.Println(string(stdout))
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue