Skip to content

Commit

Permalink
Ajuste no workflow do github
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Sep 23, 2024
1 parent f32e2a1 commit c593b16
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,23 @@ on:
branches: [main]
tags:
- "v*"
repository:
url: https://github.com/rtenorioh/Press-Ticket

jobs:
create_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: List closed issues
id: list_closed_issues
run: |
echo "issues=$(gh issue list --closed --since=\"tags/$(git describe --tags --abbrev=0)\" --format='- {{.title}} (#{{.number}})')" >> $GITHUB_OUTPUT
- name: Get commit log
id: commit_log
run: |
echo "log=$(git log --pretty=format:'- %s (%h)' --abbrev-commit --since=\"$(git describe --tags --abbrev=0)\")" >> $GITHUB_OUTPUT
- name: Create Release
uses: actions/create-release@v1
env:
Expand All @@ -23,14 +32,7 @@ jobs:
body: |
O que mudou:
```
git log --pretty=format:'- %s (%h)' --abbrev-commit --since="tags/$(git describe --tags --abbrev=0)"
```
${{ steps.commit_log.outputs.log }}
Issues Fechadas:**
**Issues Fechadas:**
${{ steps.list_closed_issues.outputs.issues }}
- name: List closed issues
id: list_closed_issues
run: |
echo "issues=$(gh issue list --closed --since=\"tags/$(git describe --tags --abbrev=0)\" --format='- {{.title}} (#{{.number}})')" >> $GITHUB_OUTPUT

0 comments on commit c593b16

Please sign in to comment.