diff --git a/.github/workflows/autoassig_milestone_to_issue.yml b/.github/workflows/autoassig_milestone_to_issue.yml new file mode 100644 index 0000000..224ffed --- /dev/null +++ b/.github/workflows/autoassig_milestone_to_issue.yml @@ -0,0 +1,20 @@ +name: Autoassign milestone +on: + issues: + types: [assigned, opened, reopened] + pull_request: + types: [assigned, opened, reopened] +jobs: + milestone: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: do it + run: | + msname=$(date "+%b %Y") + echo $msname + echo "gh issue edit $ISSUE --milestone \"$msname\"" + gh issue edit $ISSUE --milestone "$msname" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE: ${{ github.event.issue.number }} diff --git a/.github/workflows/automilestone.yml b/.github/workflows/automilestone.yml deleted file mode 100644 index f8fbd0f..0000000 --- a/.github/workflows/automilestone.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Autoassign milestone - -on: - issues: - types: [opened, reopened] - pull_request: - types: [opened, reopened] - -jobs: - add_label: - uses: CCBR/gha-test/.github/workflows/autoadd_milestone_to_issue.yml@v0.1.0 - secrets: inherit