forked from jenkinsci/jenkins
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate the since updater (jenkinsci#7240)
Co-authored-by: Tim Jacomb <[email protected]>
- Loading branch information
1 parent
65f374c
commit 36c155e
Showing
2 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Run update-since-todo.py | ||
|
||
on: | ||
schedule: | ||
- cron: "0 16 * * THU" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
since_updater: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository_owner == 'jenkinsci' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run update-since-todo.py | ||
run: | | ||
body=$(./update-since-todo.py) | ||
{ | ||
echo 'PROGRESS<<EOF' | ||
echo "${body}" | ||
echo 'EOF' | ||
} >> $GITHUB_OUTPUT | ||
id: run_script | ||
shell: bash | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@8867c4aba1b742c39f8d0ba35429c2dfa4b6cb20 # v7 | ||
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 | ||
branch: actions/update-since-todo | ||
delete-branch: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters