Skip to content

Update update-milestone.yml #1519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 13 additions & 47 deletions .github/workflows/update-milestone.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,23 @@
name: Update Milestone

on:
pull_request_target:
types:
- closed
- opened
- reopened
- synchronize
push:
branches:
- main

jobs:
update_milestone:
update-milestone:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.sha }}
fetch-depth: 0

- uses: actions/setup-dotnet@v4

- name: Fetch all history for all tags and branches
run: git fetch --prune

- name: Install GitVersion
if: ${{ github.event.action == 'opened' }}
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '6.0.x'
preferLatestVersion: true

- name: Install GitReleaseManager
if: ${{ github.event.action == 'opened' }}
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup GitReleaseManager.Tool
uses: gittools/actions/gitreleasemanager/[email protected]
with:
versionSpec: '0.18.x'

- name: Use GitVersion
if: ${{ github.event.action == 'opened' }}
id: gitversion
uses: gittools/actions/gitversion/[email protected]
version: 0.19.x

- name: Create Milestone
if: ${{ github.event.action == 'opened' }}
uses: WyriHaximus/github-action-create-milestone@v1
with:
title: v${{ steps.gitversion.outputs.majorMinorPatch }}
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
continue-on-error: true

- name: sync milestones
uses: RocketSurgeonsGuild/actions/[email protected]
with:
default-label: 'mysterious'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Update Milestone
run: |
gitreleasemanager milestone --update --milestone=1.0.0
Loading