Skip to content

Commit

Permalink
Merge pull request #4 from shun198/release/0.0.0
Browse files Browse the repository at this point in the history
Release/0.0.0
  • Loading branch information
shun198 authored Jan 22, 2023
2 parents 64123e7 + 2e17b33 commit 6f47d2b
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 10 deletions.
9 changes: 6 additions & 3 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
- color: a2eeef
description: New feature or request
name: enhancement
- color: B60205
- color: b60205
description: An urgent pull request to look
name: emergency
- color: F9D0C4
- color: f9d0c4
description: Refactor Code
name: refactor
- color: 1D76DB
- color: 1d76db
description: Test Code
name: test
- color: c2e0c6
description: Create Release Branch
name: test
10 changes: 5 additions & 5 deletions .github/workflows/label-syncer.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Sync labels

on:
create:
branches:
- develop
# on:
# schedule:
# - cron: "0 9 * * 1"
on: push

jobs:
build:
name: Sync labels
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: micnncim/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release Drafter

on:
pull_request:
# PRが閉じたタイミングで実行
types:
- closed
# mainブランチのみを対象とする
branches:
- main

permissions:
contents: read

jobs:
release:
# permissions:
# # write permission is required to create a github release
# contents: write
# # write permission is required for autolabeler
# # otherwise, read permission is required at least
# pull-requests: write
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'release')
runs-on: ubuntu-latest
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV

# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: Tests
on: [pull_request]
on:
pull_request:
branches-ignore:
- "release/**"
jobs:
test:
name: Run Test Code
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: generate .env
run:
chmod +x set-up-env.test.sh && sh set-up-env.test.sh
Expand Down

0 comments on commit 6f47d2b

Please sign in to comment.