모바일 클라이언트에서 게임종료없이 플래닛 변경 #1209
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
name: set 9c project default fields | |
on: | |
issues: | |
types: | |
- opened | |
- reopened | |
pull_request: | |
types: | |
- opened | |
- reopened | |
jobs: | |
add-to-project: | |
name: Add To GitHub projects | |
runs-on: ubuntu-latest | |
steps: | |
- name: Add project | |
uses: actions/[email protected] | |
with: | |
project-url: https://github.com/orgs/planetarium/projects/97 | |
github-token: ${{ secrets.PROJECTS_PAT }} | |
- name: Set milestone env | |
run: | | |
echo "CURRENT_MILESTONE=$(gh api graphql -f query='query($name: String!, $owner: String!) { | |
repository(name: $name, owner: $owner) { | |
name | |
milestones(last: 1, states: [OPEN], orderBy: {field: DUE_DATE, direction: DESC}) { | |
nodes { | |
number | |
state | |
title | |
dueOn | |
} | |
} | |
}}' -f name=NineChronicles -f owner=planetarium --jq '.data.repository.milestones.nodes.[0].title')" >> $GITHUB_ENV | |
env: | |
GH_TOKEN: ${{ secrets.PROJECTS_PAT }} | |
- name: Set milestone field | |
uses: Julexar/[email protected] | |
with: | |
token: "${{ secrets.GITHUB_TOKEN }}" | |
milestone: "${{ env.CURRENT_MILESTONE }}" |