name: Update Repository on: # every Sunday at 00:36 UTC # https://crontab.guru/#36_2_*_*_0 schedule: - cron: 36 2 * * 0 workflow_dispatch: permissions: contents: read jobs: update: runs-on: ubuntu-slim permissions: contents: write pull-requests: write issues: write steps: - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: repository: ${{ env.REPOSITORY || github.repository }} ref: ${{ env.REF || '' }} token: ${{ secrets.SYNC_TOKEN }} - name: Configure git user run: | git config --global user.name 'Conda Bot' git config --global user.email '18747875+conda-bot@users.noreply.github.com' - uses: conda/actions/combine-durations@7f6830b1428a9bd47f0b068892c77eae95207037 # v26.1.0 id: durations continue-on-error: true - uses: conda/actions/template-files@7f6830b1428a9bd47f0b068892c77eae95207037 # v26.1.0 id: templates continue-on-error: true - name: Commit changes # no-op if there are no updates continue-on-error: true run: | git add . git commit --message "🤖 updated file(s)" - name: Create fork # no-op if the repository is already forked run: echo FORK=$(gh repo fork --clone=false --default-branch-only 2>&1 | awk '{print $1}') >> $GITHUB_ENV env: GH_TOKEN: ${{ secrets.SYNC_TOKEN }} - uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 with: push-to-fork: ${{ env.FORK }} token: ${{ secrets.SYNC_TOKEN }} branch: update delete-branch: true title: 🤖 Update infrastructure file(s) body: | [update.yml]: ${{ github.server_url }}/${{ github.repository }}/blob/main/.github/workflows/update.yml Your friendly repository updater. ${{ steps.durations.outputs.summary }} ${{ steps.templates.outputs.summary }} This PR was triggered by @${{ github.triggering_actor }} via ${{ github.event_name }}. ###### Auto-generated by the [`update.yml`][update.yml] workflow, see ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}.