[워크샵] 강화 재료 자동 선택 버튼 비활성화 시 Remove All로 출력 #46
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 }}" |