generated from bfren/docker-alpine-s6
-
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 870 Bytes
/
update-readme.yml
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
name: update-readme
on:
release:
types: [published]
workflow_dispatch:
jobs:
update_readme:
runs-on: ubuntu-latest
steps:
-
name: Get repository name
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | sed "s/bfren\/docker-//")" >> $GITHUB_ENV
shell: bash
-
name: Checkout code
uses: actions/checkout@v4
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Update repo description with README.md
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: bfren/${{ env.REPOSITORY_NAME }}