From eda268094aafebd14530ead8b443f50f5be1a278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ezequiel=20P=C3=A1ssaro?= Date: Sat, 30 Jan 2021 12:21:29 -0300 Subject: [PATCH] fix update changelog workflow (#1432) --- .github/workflows/documentation-build.yml | 5 +++-- .github/workflows/update-changelog.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/documentation-build.yml b/.github/workflows/documentation-build.yml index 03627dea93c..97170b43e50 100644 --- a/.github/workflows/documentation-build.yml +++ b/.github/workflows/documentation-build.yml @@ -6,14 +6,15 @@ name: documentation-build on: push: branches: - - master + - master + schedule: - cron: '10 0 * * 0' jobs: documentation_build: - name: Documentation Build runs-on: ubuntu-latest + steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index 38f57814eb5..3c99b9013fe 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -10,6 +10,7 @@ on: jobs: push: runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'tardis-sn' }} # Do not run scheduled jobs on forks steps: - uses: actions/checkout@v2 @@ -23,11 +24,11 @@ jobs: - name: Commit files run: | git config --local user.email "wkerzendorf+tardis@gmail.com" - git config --local user.name "TARDIS bot" + git config --local user.name "TARDIS Bot" git add CHANGELOG.md git commit -m "Update CHANGELOG.md [skip ci]" - name: Push changes uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.BOT_TOKEN }} # Use BOT_TOKEN to push on write-protected branches