From 2497bbb77176291f0f0e2cd1952161d41ce5333c Mon Sep 17 00:00:00 2001 From: Snigdhajyoti Ghosh Date: Thu, 14 Sep 2023 20:17:54 +0530 Subject: [PATCH] update short description reading meachanism --- .github/workflows/docker-hub-description.yml | 14 ++++++++++++-- zshbuntu/docs/short_description.txt | 1 + zshmazon/docs/short_description.txt | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 zshbuntu/docs/short_description.txt create mode 100644 zshmazon/docs/short_description.txt diff --git a/.github/workflows/docker-hub-description.yml b/.github/workflows/docker-hub-description.yml index 6fc7120..b67512b 100644 --- a/.github/workflows/docker-hub-description.yml +++ b/.github/workflows/docker-hub-description.yml @@ -19,20 +19,30 @@ jobs: 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: "Your Ultimate Ubuntu Image with Zsh Magic!" + 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: "Your Ultimate AmazonLinux Image with Zsh Magic!" + short-description: ${{ steps.zshmazon_read_files.outputs.short_description }} readme-filepath: "./zshmazon/docs/README.md" \ No newline at end of file diff --git a/zshbuntu/docs/short_description.txt b/zshbuntu/docs/short_description.txt new file mode 100644 index 0000000..235e425 --- /dev/null +++ b/zshbuntu/docs/short_description.txt @@ -0,0 +1 @@ +Your Ultimate Ubuntu Image with Zsh Magic! \ No newline at end of file diff --git a/zshmazon/docs/short_description.txt b/zshmazon/docs/short_description.txt new file mode 100644 index 0000000..f49e689 --- /dev/null +++ b/zshmazon/docs/short_description.txt @@ -0,0 +1 @@ +Your Ultimate AmazonLinux Image with Zsh Magic! \ No newline at end of file