dockerhub-description/.github/workflows/dockerhub-description.yml

28 lines
909 B
YAML
Raw Normal View History

2019-08-12 14:18:06 +09:00
name: Update Docker Hub Description
2019-08-12 17:30:59 +09:00
on:
2020-08-22 09:52:30 +09:00
workflow_dispatch:
2019-08-12 17:30:59 +09:00
push:
branches:
2019-11-10 21:57:41 +09:00
- master
paths:
- README.md
- .github/workflows/dockerhub-description.yml
2019-08-12 14:18:06 +09:00
jobs:
dockerHubDescription:
runs-on: ubuntu-latest
steps:
2020-01-04 09:21:19 +09:00
- uses: actions/checkout@v2
2020-09-09 13:36:13 +09:00
- name: Modify readme for DockerHub
run: |
sed -i 's/# Docker Hub Description/# [Docker Hub Description](https:\/\/github.com\/peter-evans\/dockerhub-description)/' README.md
sed -i 's/(LICENSE)/(https:\/\/github.com\/peter-evans\/dockerhub-description\/blob\/master\/LICENSE)/' README.md
2019-10-29 00:50:55 +09:00
- name: Docker Hub Description
uses: ./
2020-09-23 15:58:52 +09:00
with:
2020-09-25 15:48:51 +09:00
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: peterevans/dockerhub-description
2021-03-31 17:03:42 +09:00
short-description: ${{ github.event.repository.description }}