diff --git a/.github/workflows_json/release.json b/.github/workflows/release.json similarity index 100% rename from .github/workflows_json/release.json rename to .github/workflows/release.json diff --git a/.github/workflows_json/test.json b/.github/workflows/test.json similarity index 96% rename from .github/workflows_json/test.json rename to .github/workflows/test.json index d8fb271..bb23b94 100644 --- a/.github/workflows_json/test.json +++ b/.github/workflows/test.json @@ -2,8 +2,8 @@ "name": "test", "on": { "push": { - "branches": [ - "dev" + "branches-ignore": [ + "master" ], "paths-ignore": [ ".git*", @@ -13,8 +13,7 @@ }, "pull_request": { "branches": [ - "master", - "dev" + "master" ], "paths-ignore": [ ".git*", diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a7dd708..de841c1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,8 +1,8 @@ name: test on: push: - branches: - - dev + branches-ignore: + - master paths-ignore: - .git* - '**.md' @@ -10,7 +10,6 @@ on: pull_request: branches: - master - - dev paths-ignore: - .git* - '**.md' diff --git a/.github/workflows/to_yaml.sh b/.github/workflows/to_yaml.sh new file mode 100644 index 0000000..cea5c29 --- /dev/null +++ b/.github/workflows/to_yaml.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +cd ${0%/*} + +for _v in $(find ./ -maxdepth 1 -type f -name '*.json'); do + yq -I 4 -o y ${_v} | head -c -1 > ${_v%.*}.yaml +done; unset _v \ No newline at end of file diff --git a/.github/workflows_json/to_yaml.sh b/.github/workflows_json/to_yaml.sh deleted file mode 100644 index 4878624..0000000 --- a/.github/workflows_json/to_yaml.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -set -eu - -cd ${0%/*} - -yq -o y -I 4 ./${1}.json | head -c -1 > ../workflows/${1}.yaml \ No newline at end of file diff --git a/README.md b/README.md index 1e5c3e5..91097f7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # **Arduino Base64** ![actions:test](https://github.com/dojyorin/arduino_base64/actions/workflows/test.yaml/badge.svg) ![actions:release](https://github.com/dojyorin/arduino_base64/actions/workflows/release.yaml/badge.svg) +![shields:license](https://img.shields.io/github/license/dojyorin/arduino_base64) +![shields:release](https://img.shields.io/github/release/dojyorin/arduino_base64) Convert between binary and base64 encoded string. Easily convert sensor raw values, structures, etc...