From 2ec7a98db6fe6275d3c833f7e3136bccbce3ccd6 Mon Sep 17 00:00:00 2001 From: Pablo Diaz Date: Wed, 11 Jan 2023 20:50:36 -0400 Subject: [PATCH 1/3] fix pcm type --- pkg/audioconfig/pcm.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/audioconfig/pcm.go b/pkg/audioconfig/pcm.go index 8147af0..543430b 100644 --- a/pkg/audioconfig/pcm.go +++ b/pkg/audioconfig/pcm.go @@ -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") } From 894c6b2b445a3af7030513150ff740636bf8f88a Mon Sep 17 00:00:00 2001 From: Pablo Diaz Date: Wed, 11 Jan 2023 20:53:44 -0400 Subject: [PATCH 2/3] new workflow --- .github/workflows/tagger.yml | 24 ++++++++++++++++++++++++ .version | 1 + 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/tagger.yml create mode 100644 .version diff --git a/.github/workflows/tagger.yml b/.github/workflows/tagger.yml new file mode 100644 index 0000000..cd25ac7 --- /dev/null +++ b/.github/workflows/tagger.yml @@ -0,0 +1,24 @@ +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="$VERSION_VALUE-${FIXED_BRANCH}.$(date +%Y%m%d-%H%M%S)" + git tag ${NEW_TAG} + git push origin ${NEW_TAG} --force + - name: Print new tag + run: echo "NEWTAG ${NEW_TAG}" diff --git a/.version b/.version new file mode 100644 index 0000000..d34dcac --- /dev/null +++ b/.version @@ -0,0 +1 @@ +v0.1.3 \ No newline at end of file From f9b812906118c105927cf274a0e5ec2c6ceaf2b8 Mon Sep 17 00:00:00 2001 From: Pablo Diaz Date: Wed, 11 Jan 2023 20:58:51 -0400 Subject: [PATCH 3/3] new workflow fix --- .github/workflows/tagger.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/tagger.yml b/.github/workflows/tagger.yml index cd25ac7..373c140 100644 --- a/.github/workflows/tagger.yml +++ b/.github/workflows/tagger.yml @@ -17,8 +17,6 @@ jobs: VERSION_VALUE=$(cat $VERSION_FILE) MAX_BRANCH_LENGTH=40 FIXED_BRANCH=$(echo ${GITHUB_REF:11:${MAX_BRANCH_LENGTH}} | sed 's/[^[:alnum:]]/-/g') - NEW_TAG="$VERSION_VALUE-${FIXED_BRANCH}.$(date +%Y%m%d-%H%M%S)" + NEW_TAG=$(echo "$VERSION_VALUE-${FIXED_BRANCH}.$(date +%Y%m%d-%H%M%S)") git tag ${NEW_TAG} git push origin ${NEW_TAG} --force - - name: Print new tag - run: echo "NEWTAG ${NEW_TAG}"