From b03d8238615cd17d0fbee44ec68eaa1da8e7506c Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Sun, 10 Nov 2019 21:59:08 +0900 Subject: [PATCH] Update README --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 18fab44..eef0cc5 100644 --- a/README.md +++ b/README.md @@ -41,13 +41,17 @@ If this is not the case, the path can be overridden with an environment variable #### Examples -Updates the Docker Hub repository description whenever there is a `git push` to the `master` branch. +The following workflow updates the Docker Hub repository description whenever there are changes to `README.md` and the workflow file itself on the `master` branch. This workflow assumes its location to be `.github/workflows/dockerhub-description.yml`. + ```yml name: Update Docker Hub Description on: push: branches: - - master + - master + paths: + - README.md + - .github/workflows/dockerhub-description.yml jobs: dockerHubDescription: runs-on: ubuntu-latest @@ -62,6 +66,7 @@ jobs: ``` Updates the Docker Hub repository description whenever a new release is created. + ```yml name: Update Docker Hub Description on: release @@ -94,4 +99,4 @@ docker run -v $PWD:/workspace \ ## License -MIT License - see the [LICENSE](LICENSE) file for details +[MIT](LICENSE)