Skip to content

Commit

Permalink
feat: update Git setup for PAT authentication in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pro100svitlo committed Jan 14, 2025
1 parent f46fae5 commit 60df9e2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/check-for-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,27 @@ name: Check for updates

on:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"
workflow_dispatch:

env:
GIT_USER_EMAIL: "[email protected]"
GIT_USER_NAME: "Andrii Antonov"

jobs:
check-for-updates:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.USER_PAT }}

- name: Setup git credentials
run: |
git config --global user.email "${{ env.GIT_USER_EMAIL }}"
git config --global user.name "${{ env.GIT_USER_NAME }}"
- name: Throws if not on main branch
run: |
Expand Down

0 comments on commit 60df9e2

Please sign in to comment.