From 224a87421ab190a6cf5a6207d0654a0c5b3fe337 Mon Sep 17 00:00:00 2001 From: Floris van der Grinten Date: Thu, 30 Apr 2020 16:46:14 +0200 Subject: [PATCH 1/7] Pass app info when using CLI --- src/commands/exec.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/exec.yml b/src/commands/exec.yml index fa96c44..78fb572 100755 --- a/src/commands/exec.yml +++ b/src/commands/exec.yml @@ -24,3 +24,4 @@ steps: command: secrethub run << parameters.flags >> -- $SHELL -c '<< parameters.command >>' environment: SECRETHUB_RUN_NO_PROMPT: true + SECRETHUB_APP_INFO_NAME: secrethub-circleci-orb From ae247ee2e8c24496f5f92353c8f06cbb1cc88b24 Mon Sep 17 00:00:00 2001 From: Floris van der Grinten Date: Fri, 1 May 2020 14:25:35 +0200 Subject: [PATCH 2/7] Pass app info version too --- src/commands/exec.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/exec.yml b/src/commands/exec.yml index 78fb572..8400a8e 100755 --- a/src/commands/exec.yml +++ b/src/commands/exec.yml @@ -25,3 +25,4 @@ steps: environment: SECRETHUB_RUN_NO_PROMPT: true SECRETHUB_APP_INFO_NAME: secrethub-circleci-orb + SECRETHUB_APP_INFO_VERSION: 1.0.0 From cc4eb02d276d63e09acf9eb6abcc231f51d91b3c Mon Sep 17 00:00:00 2001 From: Floris van der Grinten Date: Fri, 1 May 2020 14:25:53 +0200 Subject: [PATCH 3/7] Automatically update version number on release branch --- .github/workflows/bump-version.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/bump-version.yml diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml new file mode 100644 index 0000000..761d838 --- /dev/null +++ b/.github/workflows/bump-version.yml @@ -0,0 +1,18 @@ +on: + push: + branches: + - release/v* + +jobs: + bump-version: + name: Bump version in YAML + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Bump version + uses: florisvdg/action-version-bump@master + with: + sed: 's/\(SECRETHUB_APP_INFO_VERSION: \).*/\1$VERSION/g' + file: src/commands/exec.yml + author_email: bender.github@secrethub.io From 4ad949696ebbbc13ae4cd6462ddf2ab275a29f81 Mon Sep 17 00:00:00 2001 From: florisvdg Date: Fri, 1 May 2020 15:11:37 +0200 Subject: [PATCH 4/7] Add comment about auto-updated version --- src/commands/exec.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/exec.yml b/src/commands/exec.yml index 8400a8e..129918d 100755 --- a/src/commands/exec.yml +++ b/src/commands/exec.yml @@ -25,4 +25,5 @@ steps: environment: SECRETHUB_RUN_NO_PROMPT: true SECRETHUB_APP_INFO_NAME: secrethub-circleci-orb + # Version gets updated automatically SECRETHUB_APP_INFO_VERSION: 1.0.0 From 9f61ffec44b750d9391c34c7cd00b5255a151fc4 Mon Sep 17 00:00:00 2001 From: florisvdg Date: Fri, 1 May 2020 15:24:42 +0200 Subject: [PATCH 5/7] Make comment more descriptive Co-authored-by: Simon Barendse --- src/commands/exec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/exec.yml b/src/commands/exec.yml index 129918d..bedee8e 100755 --- a/src/commands/exec.yml +++ b/src/commands/exec.yml @@ -25,5 +25,5 @@ steps: environment: SECRETHUB_RUN_NO_PROMPT: true SECRETHUB_APP_INFO_NAME: secrethub-circleci-orb - # Version gets updated automatically + # Version is automatically bumped on release branches SECRETHUB_APP_INFO_VERSION: 1.0.0 From 2690b6f6d23f6b26e4f86c752f378c60962a5ea3 Mon Sep 17 00:00:00 2001 From: florisvdg Date: Fri, 1 May 2020 15:47:13 +0200 Subject: [PATCH 6/7] Pin action version --- .github/workflows/bump-version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 761d838..5fea3c0 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -11,7 +11,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Bump version - uses: florisvdg/action-version-bump@master + uses: florisvdg/action-version-bump@v0.1.0 with: sed: 's/\(SECRETHUB_APP_INFO_VERSION: \).*/\1$VERSION/g' file: src/commands/exec.yml From f99ac6763f04a5ebc54e24faac272e3cf468da61 Mon Sep 17 00:00:00 2001 From: Floris van der Grinten Date: Thu, 7 May 2020 11:52:05 +0200 Subject: [PATCH 7/7] Bump CLI version --- src/commands/exec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/exec.yml b/src/commands/exec.yml index bedee8e..ec79c05 100755 --- a/src/commands/exec.yml +++ b/src/commands/exec.yml @@ -9,7 +9,7 @@ parameters: description: Title of the step to show in the CircleCI UI version: type: string - default: '0.36.0' + default: '0.38.0' description: Version of the SecretHub CLI flags: type: string