Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
slime-hatena committed Apr 30, 2024
2 parents cfb889d + bdab841 commit e13785b
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/push_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,47 +125,47 @@ jobs:
IMAGE_NAME: projectprimera/ongeki-score
IMAGE_NAME_GITHUB: docker.pkg.github.com/project-primera/ongeki-score/ongeki-score

release:
name: Create Release
runs-on: ubuntu-latest
needs: [skip, dockle, trivy, publish]
steps:
- uses: actions/checkout@v2
- shell: bash
id: validate
run: |
VERSION='${{github.event.head_commit.message}}'
if [[ $VERSION =~ ([0-9]+\.[0-9]+\.[0-9]+) ]]; then
echo "::set-output name=version::${BASH_REMATCH[1]}"
else
exit 1
fi
- shell: bash
name: Make tag test.
run: |
git tag ${{steps.validate.outputs.version}}
git tag -d ${{steps.validate.outputs.version}}
- shell: bash
id: changelog
run: |
git fetch --prune --unshallow
yarn install --production=false
description=$(yarn run --silent changelog | sed -e 's/^## .*$//' | sed -e 's/^####/##/')
description="${description//'%'/'%25'}"
description="${description//$'\n'/'%0A'}"
description="${description//$'\r'/'%0D'}"
echo "::set-output name=body::${description}"
env:
GITHUB_AUTH: ${{ secrets.LERNA_CHANGELOG_GITHUB_AUTH }}
- uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{steps.validate.outputs.version}}
release_name: Version ${{steps.validate.outputs.version}}
body: ${{steps.changelog.outputs.body}}
draft: false
prerelease: false
# release:
# name: Create Release
# runs-on: ubuntu-latest
# needs: [skip, dockle, trivy, publish]
# steps:
# - uses: actions/checkout@v2
# - shell: bash
# id: validate
# run: |
# VERSION='${{github.event.head_commit.message}}'
# if [[ $VERSION =~ ([0-9]+\.[0-9]+\.[0-9]+) ]]; then
# echo "::set-output name=version::${BASH_REMATCH[1]}"
# else
# exit 1
# fi
# - shell: bash
# name: Make tag test.
# run: |
# git tag ${{steps.validate.outputs.version}}
# git tag -d ${{steps.validate.outputs.version}}
# - shell: bash
# id: changelog
# run: |
# git fetch --prune --unshallow
# yarn install --production=false
# description=$(yarn run --silent changelog | sed -e 's/^## .*$//' | sed -e 's/^####/##/')
# description="${description//'%'/'%25'}"
# description="${description//$'\n'/'%0A'}"
# description="${description//$'\r'/'%0D'}"
# echo "::set-output name=body::${description}"
# env:
# GITHUB_AUTH: ${{ secrets.LERNA_CHANGELOG_GITHUB_AUTH }}
# - uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{steps.validate.outputs.version}}
# release_name: Version ${{steps.validate.outputs.version}}
# body: ${{steps.changelog.outputs.body}}
# draft: false
# prerelease: false

slack:
name: Slack Notification
Expand Down

0 comments on commit e13785b

Please sign in to comment.