update short description reading meachanism #7
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
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" |