Skip to content

Commit 0413a0a

Browse files
committed
chore(ci): rework docker hub description workflow
- Run only on base repository - Rename job from `dockerHubDescription` to `docker-hub-description` - Limit permissions of job to read only - Remove unneeded names for steps
1 parent cb6e9cb commit 0413a0a

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/dockerhub-description.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
name: Docker Hub description
22
on:
33
push:
4-
branches: [master]
4+
branches:
5+
- master
56
paths:
67
- README.md
78
- .github/workflows/dockerhub-description.yml
89
jobs:
9-
dockerHubDescription:
10+
docker-hub-description:
11+
if: github.repository == 'qdm12/gluetun'
1012
runs-on: ubuntu-latest
13+
permissions:
14+
actions: read
15+
contents: read
1116
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v3
14-
- name: Docker Hub Description
15-
uses: peter-evans/dockerhub-description@v3
17+
- uses: actions/checkout@v3
18+
19+
- uses: peter-evans/dockerhub-description@v3
1620
with:
1721
username: qmcgaw
1822
password: ${{ secrets.DOCKERHUB_PASSWORD }}

0 commit comments

Comments
 (0)