Skip to content

Commit

Permalink
feat: Add CI workflow to create, close and delete a milestone (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer authored Nov 3, 2024
1 parent 82d193a commit e255f73
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Description:
# - Create, Close and Delete a milestone.

name: Milestone Operations@develop
on:
pull_request:
workflow_dispatch:

# Fix GraphQL: Resource not accessible by integration (updatePullRequest)
permissions:
contents: write
pull-requests: write

jobs:
milestone:
runs-on: ubuntu-latest
name: Milestone Operates
steps:
- name: Create Milestone
id: create
uses: hustcer/milestone-action@develop
with:
action: create
title: 'v0.0.1'
due-on: '2025/12/31'
description: 'Test Create Milestone'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Close Milestone
id: close
uses: hustcer/milestone-action@develop
with:
action: close
milestone: 'v0.0.1'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete Milestone
id: delete
uses: hustcer/milestone-action@develop
with:
action: delete
milestone: ${{ steps.create.outputs.milestone-number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e255f73

Please sign in to comment.