Skip to content

Commit

Permalink
Merge pull request #14 from winds-nagaoka/fix-github-actions-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
furusax0621 authored Apr 23, 2024
2 parents a1bd07a + 02c4c0f commit cc491d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Environment
run: |
version=$(TZ='Asia/Tokyo' date +v%Y-%m-%d)
title=$(git log -1 --merges --pretty=format:"%b")
echo "::set-env name=TAG::${version}"
echo "::set-env name=TITLE::${title}"
echo "TAG=$version" >> "$GITHUB_ENV"
- name: Create New Tag
run: |
Expand All @@ -29,12 +27,7 @@ jobs:
git push --tags
- name: Create New Release
uses: actions/create-release@v1
run: |
gh release create $TAG -t $TAG --generate-notes --latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.TAG }}
release_name: ${{ env.TAG }}
body: ${{ env.TITLE }}
draft: false
prerelease: false
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions terms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,4 @@
この規約は、平成31年3月9日より改制する。
この規約は、令和元年12月9日より改制する。
この規約は、令和6年3月16日より改制する。

0 comments on commit cc491d8

Please sign in to comment.