Skip to content

Commit

Permalink
checkout and make changes file before artifacts download
Browse files Browse the repository at this point in the history
  • Loading branch information
ultram4rine committed Mar 11, 2022
1 parent 5bb5fc6 commit 4740946
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ jobs:
- package
- docker
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Create release body file
run: awk -v ver=v$(cargo read-manifest | sed 's/.*"version":"\{0,1\}\([^,"]*\)"\{0,1\}.*/\1/') '/^##/ { if (p) { exit }; if ($2 == ver) { p=1; next } } p && NF' CHANGELOG.md > changes.txt

- name: Download archive
uses: actions/download-artifact@v3
with:
Expand All @@ -139,12 +145,6 @@ jobs:
name: alerter-rpm
path: packages

- name: Checkout
uses: actions/checkout@v3

- name: Create release body file
run: awk -v ver=v$(cargo read-manifest | sed 's/.*"version":"\{0,1\}\([^,"]*\)"\{0,1\}.*/\1/') '/^##/ { if (p) { exit }; if ($2 == ver) { p=1; next } } p && NF' CHANGELOG.md > changes.txt

- name: Release
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 4740946

Please sign in to comment.