address zizmor comment

This commit is contained in:
oskar 2026-07-13 20:29:07 +07:00
parent a9ae943244
commit b75a9542ac
No known key found for this signature in database
GPG key ID: 0D4D9DF6394A1381

View file

@ -26,11 +26,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_BRANCH: ${{ github.event.repository.default_branch }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
BRANCH_NAME="auto-update-price-and-context-window-$(date +'%Y-%m-%d')"
BASE_BRANCH="${{ github.event.repository.default_branch }}"
git fetch origin "${BASE_BRANCH}" "${BRANCH_NAME}" || true
if git show-ref --verify --quiet "refs/remotes/origin/${BRANCH_NAME}"; then
git checkout -B "${BRANCH_NAME}" "origin/${BRANCH_NAME}"