fix(ci): use secret variable [skip ci]

This commit is contained in:
Baptiste Augrain 2022-10-09 19:56:36 +02:00
parent 2c17eed9d3
commit c14e5d4a97
2 changed files with 5 additions and 4 deletions

View file

@ -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'

View file

@ -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