Skip to content

Commit

Permalink
ci: issue
Browse files Browse the repository at this point in the history
  • Loading branch information
qzeene committed Jul 15, 2023
1 parent 2f7b57a commit 0dfdf95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ jobs:
run: |
id=$(echo "${{github.ref}}" | cut -d / -f3)
branch=releases/$id
git checkout -b $branch
git push --set-upstream origin $branch
echo "RELEASE=$id" >> $GITHUB_ENV
echo "RELEASE_BRANCH=$branch" >> $GITHUB_ENV
echo "AUTHOR=$(git for-each-ref --format="%(taggername) %(taggeremail)" refs/tags/$id)" >> $GITHUB_ENV
echo "DATE=$(git for-each-ref --format="%(creatordate)" refs/tags/$id)" >> $GITHUB_ENV
git checkout -b $branch
git push --set-upstream origin $branch
LOG=$(git log $(git describe --tags --abbrev=0 --exclude=v1)..HEAD --oneline)
echo "BODY<<EOF" >> $GITHUB_ENV
echo "$LOG" >> $GITHUB_ENV
Expand All @@ -52,7 +54,6 @@ jobs:
update_existing: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_BRANCH: release/${{ steps.new-branch.id }}
id: create-issue
- run: 'echo Created issue number ${{ steps.create-issue.outputs.number }}'
- run: 'echo Created ${{ steps.create-issue.outputs.url }}'
Expand Down

0 comments on commit 0dfdf95

Please sign in to comment.