Skip to content

Commit

Permalink
Merge pull request ansible#424 from ansible/maintenance/gha-git-user-…
Browse files Browse the repository at this point in the history
…before-tagging
  • Loading branch information
webknjaz authored Nov 7, 2022
2 parents 6067a4d + d8595be commit d9c041c
Showing 1 changed file with 45 additions and 51 deletions.
96 changes: 45 additions & 51 deletions .github/workflows/build-test-n-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -478,15 +478,28 @@ jobs:
xargs git tag --delete
shell: bash

- name: Setup git user as [bot]
if: >-
fromJSON(needs.pre-setup.outputs.release-requested)
|| fromJSON(needs.pre-setup.outputs.is-untagged-devel)
uses: fregante/[email protected]
- name: >-
Tag the current checkout HEAD in the local Git repo
Tag the release in the local Git repo
as ${{ needs.pre-setup.outputs.git-tag }}
for setuptools-scm to set the desired version
if: >-
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
fromJSON(needs.pre-setup.outputs.release-requested)
|| fromJSON(needs.pre-setup.outputs.is-untagged-devel)
run: >-
git tag
-m '${{ needs.pre-setup.outputs.git-tag }}'
'${{ needs.pre-setup.outputs.git-tag }}'
--
${{
fromJSON(needs.pre-setup.outputs.release-requested)
&& github.event.inputs.release-commitish || ''
}}
- name: Write the current version metadata to `.git_archival.txt`
if: >-
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
Expand All @@ -500,21 +513,6 @@ jobs:
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
run: rm -rf .git

- name: Setup git user as [bot]
if: fromJSON(needs.pre-setup.outputs.release-requested)
uses: fregante/[email protected]
- name: >-
Tag the release in the local Git repo
as ${{ needs.pre-setup.outputs.git-tag }}
for setuptools-scm to set the desired version
if: fromJSON(needs.pre-setup.outputs.release-requested)
run: >-
git tag
-m '${{ needs.pre-setup.outputs.git-tag }}'
'${{ needs.pre-setup.outputs.git-tag }}'
--
${{ github.event.inputs.release-commitish }}
- name: Build dist
run: >-
python -m
Expand Down Expand Up @@ -763,15 +761,28 @@ jobs:
xargs git tag --delete
shell: bash

- name: Setup git user as [bot]
if: >-
fromJSON(needs.pre-setup.outputs.release-requested)
|| fromJSON(needs.pre-setup.outputs.is-untagged-devel)
uses: fregante/[email protected]
- name: >-
Tag the current checkout HEAD in the local Git repo
Tag the release in the local Git repo
as ${{ needs.pre-setup.outputs.git-tag }}
for setuptools-scm to set the desired version
if: >-
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
fromJSON(needs.pre-setup.outputs.release-requested)
|| fromJSON(needs.pre-setup.outputs.is-untagged-devel)
run: >-
git tag
-m '${{ needs.pre-setup.outputs.git-tag }}'
'${{ needs.pre-setup.outputs.git-tag }}'
--
${{
fromJSON(needs.pre-setup.outputs.release-requested)
&& github.event.inputs.release-commitish || ''
}}
- name: Write the current version metadata to `.git_archival.txt`
if: >-
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
Expand All @@ -785,21 +796,6 @@ jobs:
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
run: rm -rf .git

- name: Setup git user as [bot]
if: fromJSON(needs.pre-setup.outputs.release-requested)
uses: fregante/[email protected]
- name: >-
Tag the release in the local Git repo
as ${{ needs.pre-setup.outputs.git-tag }}
for setuptools-scm to set the desired version
if: fromJSON(needs.pre-setup.outputs.release-requested)
run: >-
git tag
-m '${{ needs.pre-setup.outputs.git-tag }}'
'${{ needs.pre-setup.outputs.git-tag }}'
--
${{ github.event.inputs.release-commitish }}
- name: >-
Set up QEMU ${{ env.QEMU_ARCH }} arch emulation
with Podman
Expand Down Expand Up @@ -948,15 +944,28 @@ jobs:
xargs git tag --delete
shell: bash

- name: Setup git user as [bot]
if: >-
fromJSON(needs.pre-setup.outputs.release-requested)
|| fromJSON(needs.pre-setup.outputs.is-untagged-devel)
uses: fregante/[email protected]
- name: >-
Tag the current checkout HEAD in the local Git repo
Tag the release in the local Git repo
as ${{ needs.pre-setup.outputs.git-tag }}
for setuptools-scm to set the desired version
if: >-
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
fromJSON(needs.pre-setup.outputs.release-requested)
|| fromJSON(needs.pre-setup.outputs.is-untagged-devel)
run: >-
git tag
-m '${{ needs.pre-setup.outputs.git-tag }}'
'${{ needs.pre-setup.outputs.git-tag }}'
--
${{
fromJSON(needs.pre-setup.outputs.release-requested)
&& github.event.inputs.release-commitish || ''
}}
- name: Write the current version metadata to `.git_archival.txt`
if: >-
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
Expand All @@ -970,21 +979,6 @@ jobs:
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
run: rm -rf .git

- name: Setup git user as [bot]
if: fromJSON(needs.pre-setup.outputs.release-requested)
uses: fregante/[email protected]
- name: >-
Tag the release in the local Git repo
as ${{ needs.pre-setup.outputs.git-tag }}
for setuptools-scm to set the desired version
if: fromJSON(needs.pre-setup.outputs.release-requested)
run: >-
git tag
-m '${{ needs.pre-setup.outputs.git-tag }}'
'${{ needs.pre-setup.outputs.git-tag }}'
--
${{ github.event.inputs.release-commitish }}
- name: Build sdist and verify metadata
run: >-
python -m
Expand Down

0 comments on commit d9c041c

Please sign in to comment.