From 893ecfdfb3419348071be300f8ca8ece4fa2ec95 Mon Sep 17 00:00:00 2001 From: Nick Spaargaren Date: Sun, 5 Jan 2025 11:20:04 +0100 Subject: [PATCH] test --- .github/workflows/dns-check.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dns-check.yml b/.github/workflows/dns-check.yml index 629dd511..6120eecc 100644 --- a/.github/workflows/dns-check.yml +++ b/.github/workflows/dns-check.yml @@ -1,7 +1,8 @@ name: DNS Weekly Update on: - schedule: - - cron: '*/10 * * * *' # Temporary runs every 10 minutes + push: + branches: + - test jobs: dns-check: name: Remove domains without NS records @@ -11,8 +12,10 @@ jobs: id: branch_name run: echo "branch_name=dns-update-$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV - uses: actions/checkout@v4 - with: - ref: ${{ env.branch_name }} + - name: Create and switch to the new branch + run: | + git checkout -b ${{ env.branch_name }} + echo "Created and switched to branch ${{ env.branch_name }}" - run: | git config --global user.name 'github-actions[bot]' git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'