From 76f50fc3ad9a9293b474648417e0804f64906814 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sun, 23 Feb 2020 11:42:57 +0100 Subject: [PATCH] Add PAT Example --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 6dda4c8..c50c5c5 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,29 @@ This is due to limitations set up by GitHub: You can change this by creating a new [Pesonal Access Token (PAT)](https://github.com/settings/tokens/new), storing the token as a secret in your repository and then passing the new token to the [`actions/checkout`](https://github.com/actions/checkout#usage) Action. +#### Example Workflow + +```yaml +name: php-cs-fixer + +on: push + +jobs: + php-cs-fixer: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + token: ${{ secrets.PAT_TOKEN }} + + - name: Run php-cs-fixer + uses: docker://oskarstark/php-cs-fixer-ga + + - uses: stefanzweifel/git-auto-commit-action@v3.0.0 + with: + commit_message: Apply php-cs-fixer changes +``` + ## Known Issues - GitHub currently prohibits Actions like this to push changes from a fork to the upstream repository. See [issue #25](https://github.com/stefanzweifel/git-auto-commit-action/issues/25) for more information.