Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gocom committed Nov 19, 2022
1 parent 561eeb6 commit a11ce07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down
18 changes: 5 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,17 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Changelog
id: changelog
run: |
contents="$(sed -e '1,/h2./d' -e '/h2./,$d' CHANGELOG.textile)"
contents="${contents//'%'/'%25'}"
contents="${contents//$'\n'/'%0A'}"
contents="${contents//$'\r'/'%0D'}"
echo "::set-output name=contents::$contents"
echo "contents<<CHANGELOGEOF" >> $GITHUB_OUTPUT
sed -e '1,/h2./d' -e '/h2./,$d' CHANGELOG.textile >> $GITHUB_OUTPUT
echo "CHANGELOGEOF" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: actions/create-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: shogo82148/actions-create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{ steps.changelog.outputs.contents }}
draft: false
prerelease: false

0 comments on commit a11ce07

Please sign in to comment.