Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

update-common-files-20240106024022 #164

update-common-files-20240106024022

update-common-files-20240106024022 #164

Workflow file for this run

name: UMINO Project
on:
issues:
types:
- opened
- reopened
- assigned
- unassigned
- labeled
pull_request:
types:
- opened
- reopened
- review_requested
- assigned
- unassigned
- labeled
env:
inbox: Inbox
in_progress: In Progress
gh_project_token: ${{ secrets.GH_TOKEN }}
user: HiromiShikata
project_id: 48
jobs:
umino-job:
name: opened_or_reopened
runs-on: ubuntu-latest
if: >-
(github.event_name == 'issues' && github.event.issue.state == 'open') ||
(github.event_name == 'pull_request' && github.event.pull_request.state == 'open') &&
(github.event.action == 'opened' || github.event.action == 'reopened' ||
github.event.action == 'assigned' || github.event.action == 'unassigned' ||
(github.event.action == 'labeled' && github.event.label.name == 'hiromishikata:task:offline'))
steps:
- name: Move issue to ${{ env.inbox }}
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ env.gh_project_token }}
user: ${{ env.user }}
project_id: ${{ env.project_id }}
resource_node_id: ${{ github.event.pull_request.node_id || github.event.issue.node_id }}
status_value: ${{ env.inbox }}
- name: Comment #offline
if: github.event_name == 'issues' && github.event.action == 'labeled' && github.event.label.name == 'hiromishikata:task:offline'
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const issueComment = {
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: '#offline'
};
github.issues.createComment(issueComment);