Skip to content

Update makefile and readme to 1.4.2 (#1056) #70

Update makefile and readme to 1.4.2 (#1056)

Update makefile and readme to 1.4.2 (#1056) #70

name: Update Docker Hub Description
on:
push:
branches:
- main
paths:
- README.md
- .github/workflows/dockerhub-description.yml
concurrency:
group: ${{ github.ref_name }}-dockerhub
cancel-in-progress: true
permissions:
contents: read
jobs:
dockerHubDescription:
runs-on: ubuntu-24.04
if: ${{ github.event.repository.fork == false }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Modify readme for DockerHub
run: |
sed -i '1,2d' README.md
sed -i 's/(LICENSE)/(https:\/\/github.com\/nginx\/nginx-prometheus-exporter\/blob\/main\/LICENSE)/' README.md
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@432a30c9e07499fd01da9f8a49f0faf9e0ca5b77 # v4.0.2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: nginx/nginx-prometheus-exporter
short-description: ${{ github.event.repository.description }}