Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto tagger #5

Merged
merged 3 commits into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/tagger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: tagger
on:
push:
branches:
- "*"

jobs:
tagger:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Tag
run: |
VERSION_FILE=".version"
VERSION_VALUE=$(cat $VERSION_FILE)
MAX_BRANCH_LENGTH=40
FIXED_BRANCH=$(echo ${GITHUB_REF:11:${MAX_BRANCH_LENGTH}} | sed 's/[^[:alnum:]]/-/g')
NEW_TAG=$(echo "$VERSION_VALUE-${FIXED_BRANCH}.$(date +%Y%m%d-%H%M%S)")
git tag ${NEW_TAG}
git push origin ${NEW_TAG} --force
1 change: 1 addition & 0 deletions .version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v0.1.3
10 changes: 5 additions & 5 deletions pkg/audioconfig/pcm.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package audioconfig

type PcmConfig struct {
SampleRate int // the sample rate in Hertz
BitDepth int // the bit depth (e.g. 8, 16, 24)
Channels int // the number of channels (e.g. 1, 2)
Endianness string // the endianness of the audio data (e.g. "BIG", "LITTLE")
Encoding string // the encoding format (e.g. "UNSIGNED", "SIGNED", "FLOAT")
SampleRate int // the sample rate in Hertz
BitDepth int // the bit depth (e.g. 8, 16, 24)
Channels int // the number of channels (e.g. 1, 2)
Endianness int // the endianness of the audio data (e.g. "BIG", "LITTLE")
Encoding int // the encoding format (e.g. "UNSIGNED", "SIGNED", "FLOAT")
}