Skip to content

Commit

Permalink
Set milestone on PR based on milestone number
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Dec 13, 2023
1 parent 6336f7a commit cf0b1c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/prepare-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@ jobs:
plugin_file: ${{ env.WPORG_PLUGIN_FILE }}
plugin_path: ${{ github.workspace }}
- name: Create Milestone
id: createmilestone
id: create-milestone
uses: WyriHaximus/github-action-create-milestone@v1.2.0
continue-on-error: true
with:
title: "${{ env.MILESTONE_PREFIX }}${{ env.PLUGIN_VERSION }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Pull Request
id: create-pull-request
uses: peter-evans/create-pull-request@v5.0.2
with:
token: ${{ secrets.GH_BOT_PUSH }}
Expand All @@ -71,5 +72,5 @@ jobs:
title: '${{ env.PR_PREFIX }}${{ env.PLUGIN_VERSION }}'
labels: ${{ env.PR_LABELS }}
assignees: ${{ github.actor }}
milestone: "${{ env.MILESTONE_PREFIX }}${{ env.PLUGIN_VERSION }}"
milestone: ${{ steps.create-milestone.outputs.number }}
draft: true

0 comments on commit cf0b1c9

Please sign in to comment.