use github var

This commit is contained in:
aptalca 2023-04-18 09:17:57 -04:00
parent e19df88189
commit 5a1fc764c5
No known key found for this signature in database
GPG Key ID: BE36CFFB9FD85548

View File

@ -130,7 +130,7 @@ jobs:
token: ${{ secrets.CR_PAT }}
issue-number: ${{ github.event.pull_request.number }}
body: |
PR build pushed to `ghcr.io/${ENDPOINT}:pull_request_${{ github.event.pull_request.number }}`
PR build pushed to `ghcr.io/${{ inputs.ENDPOINT }}:pull_request_${{ github.event.pull_request.number }}`
- name: Login to DockerHub
if: ${{ (github.event_name == 'push' && github.ref == format('refs/heads/{0}-{1}', env.BASEIMAGE, env.MODNAME) && env.GITHUB_REPO == github.repository || env.GITHUB_REPO == format('{0}/{1}', github.event.pull_request.base.repo.owner.login, github.event.pull_request.base.repo.name)) && env.DOCKERUSER && env.DOCKERPASS }}