diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..36df804 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,16 @@ +name: Update Docker Hub Description +on: + push: + branches: + - master +jobs: + dockerHubDescription: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Docker Hub Description + uses: peter-evans/dockerhub-description@v2.1.0 + env: + DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} + DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} + DOCKERHUB_REPOSITORY: peterevans/create-pull-request diff --git a/README.md b/README.md index 7a54943..82c7b5f 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Create Pull Request action will: Linux ```yml - name: Create Pull Request - uses: peter-evans/create-pull-request@v1.4.0 + uses: peter-evans/create-pull-request@v1.4.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` @@ -26,11 +26,14 @@ Linux Multi platform - Linux, MacOS, Windows (beta) ```yml - name: Create Pull Request - uses: peter-evans/create-pull-request@v1.4.0-multi + uses: peter-evans/create-pull-request@v1.4.1-multi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` +**Note**: If you want pull requests created by this action to trigger an `on: pull_request` workflow then you must use a Personal Access Token instead of the default `GITHUB_TOKEN`. +See [this issue](https://github.com/peter-evans/create-pull-request/issues/48) for further details. + ### Environment variables These variables are all optional. If not set, a default value will be used. @@ -95,7 +98,7 @@ jobs: - name: Create report file run: date +%s > report.txt - name: Create Pull Request - uses: peter-evans/create-pull-request@v1.4.0 + uses: peter-evans/create-pull-request@v1.4.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COMMIT_MESSAGE: Add report file diff --git a/requirements.txt b/requirements.txt index 85ad43c..9b23aa2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -GitPython==3.0.2 +GitPython==3.0.3 PyGithub==1.43.8