Skip to content

Commit

Permalink
Merge pull request #5 from pablodz/dev
Browse files Browse the repository at this point in the history
auto tagger
  • Loading branch information
pablodz authored Jan 12, 2023
2 parents c30e1e9 + f9b8129 commit 99e014b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
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")
}

0 comments on commit 99e014b

Please sign in to comment.