-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from pablodz/dev
auto tagger
- Loading branch information
Showing
3 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v0.1.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} |