Skip to content

Commit

Permalink
fix(ci): using env var over inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
visibilityspots committed Nov 7, 2024
1 parent 9a603da commit 53bea8d
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/docker-hub-description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@ name: docker-hub-description
on:
push:
workflow_call:
inputs:
DOCKERHUB_USERNAME:
required: true
type: string
DOCKERHUB_REPOSITORY:
required: true
type: string
secrets:
DOCKERHUB_TOKEN:
required: true

env:
DOCKERHUB_USERNAME: ${{ vars.DOCKERHUB_USERNAME }}
DOCKERHUB_REPOSITORY: ${{ vars.DOCKERHUB_USERNAME }}

jobs:
update:
runs-on: ubuntu-latest
Expand All @@ -24,7 +21,7 @@ jobs:
- name: Update docker hub description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ inputs.DOCKERHUB_USERNAME }}
username: ${{ env.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ github.repository_owner }}/${{ inputs.DOCKERHUB_REPOSITORY }}
repository: ${{ github.repository_owner }}/${{ env.DOCKERHUB_REPOSITORY }}
short-description: ${{ github.event.repository.description }}

0 comments on commit 53bea8d

Please sign in to comment.