Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
change: checkout before commit
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Brink <henry@henrybrink.de>
  • Loading branch information
henrybrink committed May 8, 2024
1 parent 07a2b47 commit 9719269
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/timetracking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: peterjgrainger/action-create-branch@v2.2.0
name: 'Create a new branch'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: 'actions/timetracking-${{ github.run_id }}'
sha: '${{ github.event.pull_request.head.sha }}'
- name: Fetch the current timetracking data
run: cd docs/project/timetracking && ./get_data.sh
env:
Expand All @@ -33,13 +40,6 @@ jobs:
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
- uses: peterjgrainger/action-create-branch@v2.2.0
name: 'Create a new branch'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: 'actions/new-timetracking-data'
sha: '${{ github.event.pull_request.head.sha }}'
- name: 'Checkout the new branch'
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 9719269

Please sign in to comment.