Skip to content

Commit

Permalink
chore: Automate the since updater
Browse files Browse the repository at this point in the history
  • Loading branch information
NotMyFault committed Oct 9, 2022
1 parent 031f40c commit c6446f1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/run-since-updater.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run update-since-todo.py

on:
schedule:
- cron: "0 16 * * WED"
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
run_script:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'jenkinsci' }}
steps:
- uses: actions/checkout@v3
- name: Run update-since-todo.py
run: |
body=$(./update-since-todo.py)
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo ::set-output name=PROGRESS::$body
id: run_script
shell: bash
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Fill in since annotations
title: Fill in since annotations
body: ${{ steps.run_script.outputs.PROGRESS }}
base: master
labels: skip-changelog
delete-branch: true

0 comments on commit c6446f1

Please sign in to comment.