From 598b7e9b056397b63d35b54411cec82a770fc10b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCsna=20Uygur?= Date: Mon, 28 Aug 2023 16:45:16 +0300 Subject: [PATCH] chore: fetch Operate artifacts from Operate repository instead of Zeebe --- .github/workflows/release.yaml | 19 +++++++++++++------ release-notes-fetcher/release.sh | 12 ++++++++---- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 44d2d7b8..b7663a8d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,7 +13,7 @@ jobs: uses: actions/setup-go@v4 with: go-version: "1.20" - + - name: Build working-directory: ./release-notes-fetcher run: go build @@ -52,7 +52,7 @@ jobs: working-directory: ./release-notes-fetcher run: mkdir -p tmp - # Operate and tasklist binaries are uploaded to zeebes repo + # Tasklist binaries are uploaded to zeebes repo - name: Download Zeebe resources working-directory: ./release-notes-fetcher/tmp run: > @@ -69,15 +69,22 @@ jobs: -p "camunda-zeebe-$GITHUB_REF_NAME.tar.gz.sha1sum" -p "camunda-zeebe-$GITHUB_REF_NAME.zip" -p "camunda-zeebe-$GITHUB_REF_NAME.zip.sha1sum" - -p "camunda-operate-$GITHUB_REF_NAME.zip" - -p "camunda-operate-$GITHUB_REF_NAME.zip.sha1sum" - -p "camunda-operate-$GITHUB_REF_NAME.tar.gz" - -p "camunda-operate-$GITHUB_REF_NAME.tar.gz.sha1sum" -p "camunda-tasklist-$GITHUB_REF_NAME.zip" -p "camunda-tasklist-$GITHUB_REF_NAME.zip.sha1sum" -p "camunda-tasklist-$GITHUB_REF_NAME.tar.gz" -p "camunda-tasklist-$GITHUB_REF_NAME.tar.gz.sha1sum" + - name: Download Operate resources + working-directory: ./release-notes-fetcher/tmp + run: > + gh release + download "$GITHUB_REF_NAME" + -R camunda/operate + -p "camunda-operate-$GITHUB_REF_NAME.zip" + -p "camunda-operate-$GITHUB_REF_NAME.zip.sha1sum" + -p "camunda-operate-$GITHUB_REF_NAME.tar.gz" + -p "camunda-operate-$GITHUB_REF_NAME.tar.gz.sha1sum" + - name: Login to Camunda Cloud working-directory: ./release-notes-fetcher run: echo ${{ steps.generate-camunda-cloud-github-token.outputs.token }} | gh auth login --with-token diff --git a/release-notes-fetcher/release.sh b/release-notes-fetcher/release.sh index 40f65360..bb8964a7 100755 --- a/release-notes-fetcher/release.sh +++ b/release-notes-fetcher/release.sh @@ -27,15 +27,19 @@ gh release \ -p "camunda-zeebe-$GITHUB_REF_NAME.tar.gz.sha1sum" \ -p "camunda-zeebe-$GITHUB_REF_NAME.zip" \ -p "camunda-zeebe-$GITHUB_REF_NAME.zip.sha1sum" \ - -p "camunda-operate-$GITHUB_REF_NAME.zip" \ - -p "camunda-operate-$GITHUB_REF_NAME.zip.sha1sum" \ - -p "camunda-operate-$GITHUB_REF_NAME.tar.gz" \ - -p "camunda-operate-$GITHUB_REF_NAME.tar.gz.sha1sum" \ -p "camunda-tasklist-$GITHUB_REF_NAME.zip" \ -p "camunda-tasklist-$GITHUB_REF_NAME.zip.sha1sum" \ -p "camunda-tasklist-$GITHUB_REF_NAME.tar.gz" \ -p "camunda-tasklist-$GITHUB_REF_NAME.tar.gz.sha1sum" +gh release \ + download "$GITHUB_REF_NAME" \ + -R camunda/operate \ + -p "camunda-operate-$GITHUB_REF_NAME.zip" \ + -p "camunda-operate-$GITHUB_REF_NAME.zip.sha1sum" \ + -p "camunda-operate-$GITHUB_REF_NAME.tar.gz" \ + -p "camunda-operate-$GITHUB_REF_NAME.tar.gz.sha1sum" \ + gh release \ download "$GITHUB_REF_NAME" \ -R camunda-cloud/identity \