run-since-updater.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: Run update-since-todo.py
  2. on:
  3. schedule:
  4. - cron: "0 16 * * THU"
  5. workflow_dispatch:
  6. permissions:
  7. contents: write
  8. pull-requests: write
  9. jobs:
  10. since_updater:
  11. runs-on: ubuntu-latest
  12. if: ${{ github.repository_owner == 'jenkinsci' }}
  13. steps:
  14. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
  15. with:
  16. fetch-depth: 0
  17. - name: Run update-since-todo.py
  18. run: |
  19. body=$(./update-since-todo.py)
  20. {
  21. echo 'PROGRESS<<EOF'
  22. echo "${body}"
  23. echo 'EOF'
  24. } >> $GITHUB_OUTPUT
  25. id: run_script
  26. shell: bash
  27. - name: Create Pull Request
  28. uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
  29. with:
  30. token: ${{ secrets.GITHUB_TOKEN }}
  31. commit-message: Fill in since annotations
  32. title: Fill in since annotations
  33. body: ${{ steps.run_script.outputs.PROGRESS }}
  34. base: master
  35. labels: skip-changelog
  36. branch: actions/update-since-todo
  37. delete-branch: true