From fa2dc58831c1683a83ead4bfa86ffd82d6978964 Mon Sep 17 00:00:00 2001 From: Jeffrey Picard Date: Sat, 24 Jul 2021 04:17:42 -0400 Subject: [PATCH] don't do full build all the time --- .github/workflows/build-short.yml | 13 +++++++++++++ .github/workflows/build.yml | 2 ++ scripts/version.py | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-short.yml diff --git a/.github/workflows/build-short.yml b/.github/workflows/build-short.yml new file mode 100644 index 0000000..c5912b5 --- /dev/null +++ b/.github/workflows/build-short.yml @@ -0,0 +1,13 @@ +name: 'Build Hub' + +on: + push: +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2.1.3 + with: + go-version: 1.16.5 + - run: go build . \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2adaa81..155ce43 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,8 @@ name: 'Build Hub' on: push: + branches: + - master jobs: build: runs-on: ubuntu-latest diff --git a/scripts/version.py b/scripts/version.py index 1d870d5..9067533 100644 --- a/scripts/version.py +++ b/scripts/version.py @@ -328,7 +328,7 @@ def main(): parser.add_argument("--confirm", default=0, action="count", help="without this flag, it will only print what it will do but will not actually do it") parser.add_argument("--start-tag", help="custom starting tag for changelog generation") - parser.add_argument("action", choices=['test', 'current', 'major', 'minor', 'micro']) + parser.add_argument("action", choices=['test', 'current', 'major', 'date', 'micro']) args = parser.parse_args() if args.action == "test":