Minor improvements (#55) #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Docker-Hub description | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- README.md | |
- .github/workflows/dockerhub-description.yml | |
permissions: | |
contents: read | |
jobs: | |
dockerHubDescription: | |
name: Update Docker-Hub description | |
runs-on: ubuntu-latest | |
# Ensure this job only runs if the Docker-Hub user is set | |
if: vars.DOCKERHUB_USERNAME != '' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.1.0 | |
- name: Docker Hub Description | |
uses: peter-evans/dockerhub-description@dc67fad7001ef9e8e3c124cb7a64e16d0a63d864 | |
with: | |
username: ${{ vars.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
repository: ${{ format('{0}/{1}', vars.DOCKERHUB_USERNAME, 'ubuntu-act') }} | |
short-description: ${{ github.event.repository.description }} |