From 05266d997bbdc5546ca0ab49f2f8709b3ae7ea58 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Thu, 16 Sep 2021 10:18:12 +0200 Subject: [PATCH] ci: use BPMN_IO_TOKEN for authentication --- .github/workflows/POST_RELEASE.yml | 8 ++++---- tasks/stages/update-demo | 2 +- tasks/stages/update-examples | 2 +- tasks/stages/update-integration-test | 2 +- tasks/stages/update-website | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/POST_RELEASE.yml b/.github/workflows/POST_RELEASE.yml index e8a690f8..fa1fcf85 100644 --- a/.github/workflows/POST_RELEASE.yml +++ b/.github/workflows/POST_RELEASE.yml @@ -42,14 +42,14 @@ jobs: fi - name: Update integration test env: - GH_AUTH: ${{ secrets.GH_AUTH }} + BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }} BPMN_IO_EMAIL: ${{ secrets.BPMN_IO_EMAIL }} BPMN_IO_USERNAME: ${{ secrets.BPMN_IO_USERNAME }} run: bash tasks/stages/update-integration-test - name: Update demo if: ${{ env.STABLE_RELEASE == 'true' }} env: - GH_AUTH: ${{ secrets.GH_AUTH }} + BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }} BPMN_IO_EMAIL: ${{ secrets.BPMN_IO_EMAIL }} BPMN_IO_USERNAME: ${{ secrets.BPMN_IO_USERNAME }} BPMN_IO_DEMO_ENDPOINT: ${{ secrets.BPMN_IO_DEMO_ENDPOINT }} @@ -57,14 +57,14 @@ jobs: - name: Update examples if: ${{ env.STABLE_RELEASE == 'true' }} env: - GH_AUTH: ${{ secrets.GH_AUTH }} + BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }} BPMN_IO_EMAIL: ${{ secrets.BPMN_IO_EMAIL }} BPMN_IO_USERNAME: ${{ secrets.BPMN_IO_USERNAME }} run: bash tasks/stages/update-examples - name: Update website if: ${{ env.STABLE_RELEASE == 'true' }} env: - GH_AUTH: ${{ secrets.GH_AUTH }} + BPMN_IO_TOKEN: ${{ secrets.BPMN_IO_TOKEN }} BPMN_IO_EMAIL: ${{ secrets.BPMN_IO_EMAIL }} BPMN_IO_USERNAME: ${{ secrets.BPMN_IO_USERNAME }} run: bash tasks/stages/update-website diff --git a/tasks/stages/update-demo b/tasks/stages/update-demo index 0451517a..7b003ee0 100755 --- a/tasks/stages/update-demo +++ b/tasks/stages/update-demo @@ -9,7 +9,7 @@ CLONE_DIR="$WORKDIR/bpmn-io-demo" # create work dir mkdir -p "$WORKDIR" -git clone --depth=1 "https://$GH_AUTH@github.com/$BPMN_IO_DEMO_ENDPOINT.git" "$CLONE_DIR" +git clone --depth=1 "https://$BPMN_IO_TOKEN@github.com/$BPMN_IO_DEMO_ENDPOINT.git" "$CLONE_DIR" cd "$CLONE_DIR" diff --git a/tasks/stages/update-examples b/tasks/stages/update-examples index e3e9f3ab..08501000 100755 --- a/tasks/stages/update-examples +++ b/tasks/stages/update-examples @@ -9,7 +9,7 @@ EXAMPLES_DIR="$WORKDIR/bpmn-js-examples" # create work dir mkdir -p "$WORKDIR" -git clone --depth=1 "https://$GH_AUTH@github.com/bpmn-io/bpmn-js-examples.git" "$EXAMPLES_DIR" +git clone --depth=1 "https://$BPMN_IO_TOKEN@github.com/bpmn-io/bpmn-js-examples.git" "$EXAMPLES_DIR" cd "$EXAMPLES_DIR" diff --git a/tasks/stages/update-integration-test b/tasks/stages/update-integration-test index cb7dae76..d60bf482 100755 --- a/tasks/stages/update-integration-test +++ b/tasks/stages/update-integration-test @@ -9,7 +9,7 @@ IT_DIR="$WORKDIR/bpmn-js-integration" # create work dir mkdir -p "$WORKDIR" -git clone --depth=1 "https://$GH_AUTH@github.com/bpmn-io/bpmn-js-integration.git" "$IT_DIR" +git clone --depth=1 "https://$BPMN_IO_TOKEN@github.com/bpmn-io/bpmn-js-integration.git" "$IT_DIR" cd "$IT_DIR" diff --git a/tasks/stages/update-website b/tasks/stages/update-website index a479723b..4ffac997 100755 --- a/tasks/stages/update-website +++ b/tasks/stages/update-website @@ -9,7 +9,7 @@ CLONE_DIR="$WORKDIR/bpmn.io" # create work dir mkdir -p "$WORKDIR" -git clone --depth=1 "https://$GH_AUTH@github.com/bpmn-io/bpmn.io.git" "$CLONE_DIR" +git clone --depth=1 "https://$BPMN_IO_TOKEN@github.com/bpmn-io/bpmn.io.git" "$CLONE_DIR" cd "$CLONE_DIR"