workflows/docker: tweak syntax

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
This commit is contained in:
Ruoyu Zhong 2024-08-26 12:56:29 +08:00 committed by GitHub
parent 74e27a9127
commit e7e244e6c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ jobs:
github.event_name == 'release' || github.event_name == 'release' ||
(github.event_name == 'push' && github.ref == 'refs/heads/master') (github.event_name == 'push' && github.ref == 'refs/heads/master')
run: | run: |
echo "$TOKEN" | docker login ghcr.io -u BrewTestBot --password-stdin docker login ghcr.io -u BrewTestBot --password-stdin <<<"$TOKEN"
env: env:
TOKEN: ${{secrets.HOMEBREW_BREW_GITHUB_PACKAGES_TOKEN}} TOKEN: ${{secrets.HOMEBREW_BREW_GITHUB_PACKAGES_TOKEN}}
@ -64,7 +64,7 @@ jobs:
github.event_name == 'release' || github.event_name == 'release' ||
(github.event_name == 'push' && github.ref == 'refs/heads/master') (github.event_name == 'push' && github.ref == 'refs/heads/master')
run: | run: |
echo "$TOKEN" | docker login -u brewtestbot --password-stdin docker login -u brewtestbot --password-stdin <<<"$TOKEN"
env: env:
TOKEN: ${{secrets.HOMEBREW_BREW_DOCKER_TOKEN}} TOKEN: ${{secrets.HOMEBREW_BREW_DOCKER_TOKEN}}