From c14e5d4a9780cf177a705c1d47d1ef3437576662 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Sun, 9 Oct 2022 19:56:36 +0200 Subject: [PATCH] fix(ci): use secret variable [skip ci] --- .github/workflows/insider-linux.yml | 2 +- .github/workflows/stable-linux.yml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/insider-linux.yml b/.github/workflows/insider-linux.yml index 91d704a..bebfb46 100644 --- a/.github/workflows/insider-linux.yml +++ b/.github/workflows/insider-linux.yml @@ -170,10 +170,10 @@ jobs: ref: insider - name: Check version - run: ./stores/snapcraft/check_version.sh env: ARCHITECTURE: ${{ matrix.platform }} SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }} + run: ./stores/snapcraft/check_version.sh - uses: docker/setup-qemu-action@v1 if: env.SHOULD_DEPLOY == 'yes' diff --git a/.github/workflows/stable-linux.yml b/.github/workflows/stable-linux.yml index ddae032..35cfce2 100644 --- a/.github/workflows/stable-linux.yml +++ b/.github/workflows/stable-linux.yml @@ -156,10 +156,10 @@ jobs: - uses: actions/checkout@v3 - name: Check version - run: ./stores/snapcraft/check_version.sh env: ARCHITECTURE: ${{ matrix.platform }} SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }} + run: ./stores/snapcraft/check_version.sh - uses: docker/setup-qemu-action@v1 if: env.SHOULD_DEPLOY == 'yes' @@ -189,8 +189,9 @@ jobs: needs: build runs-on: ubuntu-latest if: needs.build.outputs.SHOULD_DEPLOY == 'yes' + steps: - name: Trigger repository rebuild - run: curl -X POST --fail -F token=$GL_PAGES_TOKEN -F ref=master https://gitlab.com/api/v4/projects/8762263/trigger/pipeline env: - GL_PAGES_TOKEN: ${{ GL_PAGES_TOKEN }} + GL_PAGES_TOKEN: ${{ secrets.GL_PAGES_TOKEN }} + run: curl -X POST --fail -F token="${GL_PAGES_TOKEN}" -F ref=master https://gitlab.com/api/v4/projects/8762263/trigger/pipeline