Check for secret key before nightly builds (#1375)

This commit is contained in:
Meisam 2021-09-03 20:49:10 +02:00 committed by GitHub
parent 3197b22dbb
commit ae1c2d89f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,8 +10,14 @@ jobs:
steps:
- name: Log into GitHub Container Registry
env:
GH_CR_PAT: ${{ secrets.GH_CR_PAT }}
run: echo "${{ secrets.GH_CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
if: env.GH_CR_PAT != null
- uses: actions/checkout@v2
- name: Setup and run
run: cd build/release && ./docker-nightly.sh
env:
GH_CR_PAT: ${{ secrets.GH_CR_PAT }}
run: cd build/release && ./docker-nightly.sh
if: env.GH_CR_PAT != null