Skip to content

Commit 1436b98

Browse files
committed
feat: improve workflows
1 parent 1b15bf1 commit 1436b98

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/release-ansible-collection.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
python-version: '3.x'
2222

23-
- name: Install ansible
23+
- name: Install Ansible
2424
run: pip3 install --disable-pip-version-check ansible
2525

2626
- name: Set up Node.js

.github/workflows/release-ansible-role.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
python-version: '3.x'
2121

22-
- name: Install ansible
22+
- name: Install Ansible
2323
run: pip3 install --disable-pip-version-check ansible
2424

2525
- name: Set up Node.js

.github/workflows/release-python-package.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
python-version: '3.x'
2121

22-
- name: Install poetry
22+
- name: Install Poetry
2323
run: pip3 install --disable-pip-version-check poetry
2424

2525
- name: Set up Node.js
@@ -31,12 +31,12 @@ jobs:
3131
run: |
3232
npm install --global semantic-release @semantic-release/exec conventional-changelog-conventionalcommits
3333
34-
# - name: Configure semantic-release
35-
# run: |
36-
# echo '{"preset":"conventionalcommits","plugins":[["@semantic-release/commit-analyzer"],["@semantic-release/release-notes-generator"],["@semantic-release/github"],["@semantic-release/exec",{"publishCmd":"ansible-galaxy role import --api-key ${{ secrets.ANSIBLE_GALAXY_API_TOKEN }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)"}]]}' > .releaserc.json
34+
- name: Configure semantic-release
35+
run: |
36+
echo '{"preset":"conventionalcommits","plugins":[["@semantic-release/commit-analyzer"],["@semantic-release/release-notes-generator"],["@semantic-release/github"],["@semantic-release/exec",{"publishCmd":"poetry version ${nextRelease.version} && poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} && poetry build && poetry publish"}]]}' > .releaserc.json
3737
38-
# - name: Run semantic-release
39-
# env:
40-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
# run: |
42-
# semantic-release
38+
- name: Run semantic-release
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
run: |
42+
semantic-release

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ jobs:
347347
with:
348348
python-version: '3.x'
349349

350-
- name: Install ansible
350+
- name: Install Ansible
351351
if: steps.check_ansible_role.outputs.files_exists == 'true' || steps.check_ansible_playbook.outputs.files_exists == 'true'
352352
run: |
353353
pip3 install --disable-pip-version-check ansible

0 commit comments

Comments
 (0)