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

33 lines
1 KiB
YAML
Raw Normal View History

2019-08-12 07:18:06 +02:00
name: Update Docker Hub Description
2019-08-12 10:30:59 +02:00
on:
2020-08-22 02:52:30 +02:00
workflow_dispatch:
2019-08-12 10:30:59 +02:00
push:
branches:
2019-11-10 13:57:41 +01:00
- master
paths:
- README.md
- .github/workflows/dockerhub-description.yml
2019-08-12 07:18:06 +02:00
jobs:
dockerHubDescription:
runs-on: ubuntu-latest
steps:
2020-01-04 01:21:19 +01:00
- uses: actions/checkout@v2
2020-09-09 06:36:13 +02: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
- name: Test non-default filepath
2019-10-28 16:50:55 +01:00
run: |
mkdir -p some/path
2019-10-28 16:52:05 +01:00
mv README.md some/path/TEST.md
2020-09-09 06:36:13 +02:00
2019-10-28 16:50:55 +01:00
- name: Docker Hub Description
uses: ./
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
DOCKERHUB_REPOSITORY: peterevans/dockerhub-description
README_FILEPATH: ./some/path/TEST.md