From b980052ffd88505428fd64d0aeaa4cb3fa44236f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Anda=20Estensen?= Date: Mon, 7 Oct 2019 14:45:46 +0200 Subject: [PATCH 1/2] Add code to git example --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 06b718f..c63ac89 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master -... - - run: | + - name: Create local changes + run: | ... - - uses: ad-m/github-push-action@master + - name: Add files + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git commit -m "Add changes" -a + - name: Commit changes + uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} ``` From 36ceccd653a1a6dce394f385a18efa3d29878c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Anda=20Estensen?= Date: Mon, 7 Oct 2019 16:17:49 +0200 Subject: [PATCH 2/2] Fix names for steps --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c63ac89..e40e109 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,12 @@ jobs: - name: Create local changes run: | ... - - name: Add files + - name: Commit files run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git commit -m "Add changes" -a - - name: Commit changes + - name: Push changes uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }}