Skip to content

update short description reading meachanism #7

update short description reading meachanism

update short description reading meachanism #7

name: Docker Hub Description
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "**/docs/**"
- ".github/workflows/docker-hub-description.yml"
jobs:
docker-hub:
runs-on: ubuntu-latest
name: Docker Hub Update
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- id: zshbuntu_read_files
name: Read files
run: |
echo "short_description=$(cat ./zshbuntu/docs/short_description.txt)" >> $GITHUB_OUTPUT
- name: Docker Hub Description ZSHbuntu
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ vars.DOCKERHUB_USERNAME }}/zshbuntu
short-description: ${{ steps.zshbuntu_read_files.outputs.short_description }}
readme-filepath: "./zshbuntu/docs/README.md"
- id: zshmazon_read_files
name: Read files
run: |
echo "short_description=$(cat ./zshmazon/docs/short_description.txt)" >> $GITHUB_OUTPUT
- name: Docker Hub Description ZSHmazon
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ vars.DOCKERHUB_USERNAME }}/zshmazon
short-description: ${{ steps.zshmazon_read_files.outputs.short_description }}
readme-filepath: "./zshmazon/docs/README.md"