Skip to content

Commit 00c4a4d

Browse files
Fix DNS Weekly Update PR create cronjob
1 parent 7e4de10 commit 00c4a4d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/dns-check.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ jobs:
1111
id: branch_name
1212
run: echo "branch_name=dns-update-$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
1313
- uses: actions/checkout@v4
14-
with:
15-
ref: ${{ env.branch_name }}
14+
- name: Create and switch to the new branch
15+
run: |
16+
git checkout -b ${{ env.branch_name }}
17+
echo "Created and switched to branch ${{ env.branch_name }}"
1618
- run: |
1719
git config --global user.name 'github-actions[bot]'
1820
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
@@ -50,6 +52,8 @@ jobs:
5052
sudo apt-get install -y gh
5153
- name: Create Pull Request
5254
if: env.changes_detected == 'true'
55+
env:
56+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
5357
run: |
5458
gh pr create \
5559
--base master \

0 commit comments

Comments
 (0)