Skip to content

Commit

Permalink
Adds code to create git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
anweshadas committed Dec 3, 2023
1 parent 58378ab commit 7d2e6cf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/upload-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,22 @@ jobs:
repository-url: https://test.pypi.org/legacy/


# git-tag job creates the git tag

git-tag:
needs: publish
name: 'Creates git tag for Ansible (${{ inputs.ansible-version }})'
runs-on: ubuntu-latest

steps:

- name: Check out ansible-build-data
uses: actions/checkout@v3

- name: Create git tag
working-directory: ansible-build-data
run: |
git tag -a ${{ inputs.ansible-version }} -m "Ansible ${{ inputs.ansible-version }}: Changelog, Porting Guide and Dependent Collection Details"
git push origin ${{ inputs.ansible-version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7d2e6cf

Please sign in to comment.