Skip to content

Commit 7f981a2

Browse files
Merge pull request #7 from asaasdev/fix/branch-name-and-workflow-dispatch
Ajusta triggers e instalação de biblioteca para extrair a versão da release
2 parents 87aeccc + d12652b commit 7f981a2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/create_release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ on:
88

99
jobs:
1010
create-release:
11-
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
11+
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release'))
1212
runs-on: ubuntu-latest
1313

1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
1717

18+
- name: Install xmllint
19+
run: sudo apt-get update && sudo apt-get install -y libxml2-utils
20+
1821
- name: Extract version from pom.xml
1922
id: extract_version
2023
run: |

.github/workflows/publish_maven_central_repo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: publish_maven_central_repo.yml
22
on:
33
release:
4-
types: [published]
4+
types: [created]
55

66
jobs:
77
publish:

0 commit comments

Comments
 (0)