Periodic Issue Sprint Update #1
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
name: Periodic Issue Sprint Update | |
on: | |
schedule: | |
# Trigger every Sunday at 20:00 | |
- cron: '0 20 * * 0' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
repository-projects: write | |
issues: write | |
jobs: | |
move-to-next-iteration: | |
name: Move to next iteration | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Check sprint build is required | |
id: check_sprint_build_required | |
continue-on-error: true | |
run: | | |
python ./.github/workflows/check-sprint-last-day.py "longhorn" "longhorn" "Longhorn Sprint" | |
- name: Longhorn Sprint Issues - Clear Sprint | |
uses: derekbit/move-to-next-iteration@master | |
with: | |
owner: dereksu-org | |
number: 3 | |
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |
iteration-field: Sprint | |
iteration: current | |
new-iteration: none | |
excluded-statuses: "Review,Ready For Testing,Testing,Closed" | |
- name: Longhorn Sprint Issues - Move to Next Sprint | |
uses: derekbit/move-to-next-iteration@master | |
with: | |
owner: dereksu-org | |
number: 3 | |
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |
iteration-field: Sprint | |
iteration: last | |
new-iteration: next | |
statuses: "Review" | |
- name: Longhorn Sprint Issues - Move to Current Sprint | |
uses: derekbit/move-to-next-iteration@master | |
with: | |
owner: dereksu-org | |
number: 3 | |
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |
iteration-field: Sprint | |
iteration: none | |
new-iteration: current | |
statuses: "Ready For Testing" |