forked from JeremyHeleine/Photo-Sphere-Viewer
-
-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: close milestone on actual release
- Loading branch information
Showing
3 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
name: close-milestone | ||
run-name: Close milestone ${{ github.ref_name }} | ||
|
||
on: | ||
milestone: | ||
types: [closed] | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
comment: | ||
close: | ||
if: github.repository == 'mistic100/Photo-Sphere-Viewer' | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: bflad/action-milestone-comment@v1 | ||
- id: close | ||
uses: mistic100/close-milestone@main | ||
with: | ||
milestone_name: ${{ github.ref_name }} | ||
crash_on_missing: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- if: ${{ steps.close.outputs.milestone_id != null }} | ||
uses: bflad/action-milestone-comment@v1 | ||
with: | ||
milestone: ${{ steps.close.outputs.milestone_id }} | ||
body: | | ||
This feature/bug fix has been released in [version ${{ github.event.milestone.title }}](https://github.com/mistic100/Photo-Sphere-Viewer/releases/tag/${{ github.event.milestone.title }}). | ||
This feature/bug fix has been released in [version ${{ github.ref_name }}](https://github.com/mistic100/Photo-Sphere-Viewer/releases/tag/${{ github.ref_name }}). |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,13 +56,6 @@ jobs: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
NPM_TAG: latest | ||
|
||
- uses: Akkjon/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT }} | ||
with: | ||
milestone_name: ${{ github.ref_name }} | ||
crash_on_missing: false | ||
|
||
- name: update issue templates | ||
run: | | ||
git fetch origin main --depth 1 | ||
|
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