From 6c4863efc72ca632016e255aa9b231ffefb848bf Mon Sep 17 00:00:00 2001 From: 99 Date: Wed, 10 Feb 2021 11:59:07 -0800 Subject: [PATCH 1/2] Add desktop release trigger --- .github/workflows/ui-release-trigger.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/ui-release-trigger.yml diff --git a/.github/workflows/ui-release-trigger.yml b/.github/workflows/ui-release-trigger.yml new file mode 100644 index 000000000..3f352ae87 --- /dev/null +++ b/.github/workflows/ui-release-trigger.yml @@ -0,0 +1,20 @@ +name: "Trigger Boundary UI release" + +on: + push: + tags: + - '*' + +jobs: + trigger-circleci-release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + - name: Trigger Release job + env: + TAG: ${{ github.event.release.tag_name }} + run: | + curl -u ${{ secrets.CIRCLE_CI_TOKEN }}: -X POST --header "Content-Type: application/json" \ + -d '{ "branch": "main", "parameters": {"TAG": "${TAG}" }}' \ + https://circleci.com/api/v2/project/github/hashicorp/boundary-ui-releases/pipeline \ No newline at end of file From 9c0b56344ad5dfc58743148911ad1a18e509385d Mon Sep 17 00:00:00 2001 From: 99 Date: Thu, 11 Feb 2021 15:25:14 -0800 Subject: [PATCH 2/2] fixup typo --- .github/workflows/ui-release-trigger.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ui-release-trigger.yml b/.github/workflows/ui-release-trigger.yml index 3f352ae87..0181ed3ac 100644 --- a/.github/workflows/ui-release-trigger.yml +++ b/.github/workflows/ui-release-trigger.yml @@ -15,6 +15,6 @@ jobs: env: TAG: ${{ github.event.release.tag_name }} run: | - curl -u ${{ secrets.CIRCLE_CI_TOKEN }}: -X POST --header "Content-Type: application/json" \ + curl -u ${{ secrets.CIRCLE_TOKEN }}: -X POST --header "Content-Type: application/json" \ -d '{ "branch": "main", "parameters": {"TAG": "${TAG}" }}' \ - https://circleci.com/api/v2/project/github/hashicorp/boundary-ui-releases/pipeline \ No newline at end of file + https://circleci.com/api/v2/project/github/hashicorp/boundary-ui-releases/pipeline