forked from nginx/nginx-prometheus-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1.04 KB
/
Copy pathdockerhub-description.yml
File metadata and controls
35 lines (30 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- 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@1b9a80c056b620d92cedb9d9b5a223409c68ddfa # v5.0.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: nginx/nginx-prometheus-exporter
short-description: ${{ github.event.repository.description }}