forked from ansible/pylibssh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ansible#424 from ansible/maintenance/gha-git-user-…
…before-tagging
- Loading branch information
Showing
1 changed file
with
45 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
@@ -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 | ||
|
@@ -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) | ||
|
@@ -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 | ||
|
@@ -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) | ||
|
@@ -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 | ||
|