mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-25 19:45:05 +08:00
Refacto env var
This commit is contained in:
parent
ae14567f97
commit
cc09aa8868
@ -14,6 +14,12 @@ on:
|
|||||||
milestone:
|
milestone:
|
||||||
types: [created, closed]
|
types: [created, closed]
|
||||||
|
|
||||||
|
env:
|
||||||
|
MILESTONE_VERSION: ${{ github.event.milestone.title }}
|
||||||
|
MILESTONE_URL: ${{ github.event.milestone.html_url }}
|
||||||
|
MILESTONE_DUE_ON: ${{ github.event.milestone.due_on }}
|
||||||
|
GH_TOKEN: ${{ secrets.MEILI_BOT_GH_PAT }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
# -----------------
|
# -----------------
|
||||||
@ -51,11 +57,7 @@ jobs:
|
|||||||
if: github.event.action == 'created' && needs.get-release-version.outputs.is-patch == 'false'
|
if: github.event.action == 'created' && needs.get-release-version.outputs.is-patch == 'false'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.MEILI_BOT_GH_PAT }}
|
|
||||||
ISSUE_TEMPLATE: issue-template.md
|
ISSUE_TEMPLATE: issue-template.md
|
||||||
MILESTONE_VERSION: ${{ github.event.milestone.title }}
|
|
||||||
MILESTONE_URL: ${{ github.event.milestone.html_url }}
|
|
||||||
MILESTONE_DUE_ON: ${{ github.event.milestone.due_on }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Download the issue template
|
- name: Download the issue template
|
||||||
@ -88,10 +90,7 @@ jobs:
|
|||||||
if: github.event.action == 'created' && needs.get-release-version.outputs.is-patch == 'false'
|
if: github.event.action == 'created' && needs.get-release-version.outputs.is-patch == 'false'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.MEILI_BOT_GH_PAT }}
|
|
||||||
ISSUE_TEMPLATE: issue-template.md
|
ISSUE_TEMPLATE: issue-template.md
|
||||||
MILESTONE_VERSION: ${{ github.event.milestone.title }}
|
|
||||||
MILESTONE_URL: ${{ github.event.milestone.html_url }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Download the issue template
|
- name: Download the issue template
|
||||||
@ -120,10 +119,6 @@ jobs:
|
|||||||
create-release-label:
|
create-release-label:
|
||||||
if: github.event.action == 'closed'
|
if: github.event.action == 'closed'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.MEILI_BOT_GH_PAT }}
|
|
||||||
MILESTONE_VERSION: ${{ github.event.milestone.title }}
|
|
||||||
MILESTONE_DUE_ON: ${{ github.event.milestone.due_on }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Create the $MILESTONE_VERSION label
|
- name: Create the $MILESTONE_VERSION label
|
||||||
@ -145,9 +140,6 @@ jobs:
|
|||||||
if: github.event.action == 'closed'
|
if: github.event.action == 'closed'
|
||||||
needs: create-release-label
|
needs: create-release-label
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.MEILI_BOT_GH_PAT }}
|
|
||||||
MILESTONE_VERSION: ${{ github.event.milestone.title }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Add label $MILESTONE_VERSION to all PRs in the Milestone
|
- name: Add label $MILESTONE_VERSION to all PRs in the Milestone
|
||||||
|
Loading…
Reference in New Issue
Block a user