Move Community Issues to Next Sprint #7
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: Move Community Issues to Next Sprint | |
on: | |
workflow_dispatch: | |
jobs: | |
move-to-next-iteration: | |
runs-on: ubuntu-latest | |
name: Move Community Issues to Next Sprint | |
steps: | |
- name: Get current date | |
id: get-current-date | |
run: echo "current_date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Is Last Day of Current Sprint | |
continue-on-error: true | |
id: is-last-day-of-current-sprint | |
uses: derekbit/is-last-day-of-sprint@v0.0.1 | |
with: | |
owner: longhorn | |
number: 5 | |
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |
date: ${{ env.current_date }} | |
- name: Print the result | |
run: | | |
echo "${{ steps.is-last-day-of-current-sprint.outputs.last_day }}" | |
ls -al | |
pwd | |
# - name: Move to next sprint | |
# uses: blombard/move-to-next-iteration@master | |
# with: | |
# owner: longhorn | |
# number: 5 | |
# token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |
# iteration-field: Iteration | |
# iteration: current | |
# new-iteration: next | |
# statuses: 'New,In Progress' | |