@@ -99,27 +99,41 @@ jobs:
99
99
echo "PCAPKIT_CONDA_LABEL=$(python -c 'import pcapkit, pkg_resources; print("dev" if pkg_resources.parse_version(pcapkit.__version__).is_prerelease else "main")')" >> $GITHUB_OUTPUT
100
100
echo "PCAPKIT_BUILD=$(cat conda/build)" >> $GITHUB_OUTPUT
101
101
102
+ outputs :
103
+ CONDA_CHANGED : ${{ steps.verify-changed-files.outputs.files_changed }}
104
+ PCAPKIT_VERSION : ${{ steps.get_version.outputs.PCAPKIT_VERSION }}
105
+ PCAPKIT_CONDA_LABEL : ${{ steps.get_version.outputs.PCAPKIT_CONDA_LABEL }}
106
+ PCAPKIT_BUILD : ${{ steps.get_version.outputs.PCAPKIT_BUILD }}
107
+
108
+ conda-tag :
109
+ name : Conda Tag
110
+ runs-on : ubuntu-latest
111
+ needs : [ conda-update ]
112
+ if : needs.conda-update.outputs.CONDA_CHANGED == 'true'
113
+ steps :
114
+ - name : Checkout code
115
+ uses : actions/checkout@v3
116
+ with :
117
+ ref : v${{ needs.conda-update.outputs.PCAPKIT_VERSION }}
118
+ fetch-depth : 0
119
+
102
120
- name : Create Tag
103
121
run : |
104
122
set -x
105
123
106
- git tag "conda-${{ steps.get_version.outputs.PCAPKIT_VERSION }}+${{ steps.get_version.outputs.PCAPKIT_BUILD }}" -m"Conda Build"
124
+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
125
+ git config --local user.name "github-actions[bot]"
126
+ git tag "conda-${{ needs.conda-update.outputs.PCAPKIT_VERSION }}+0" -m"Conda Build"
107
127
108
128
- name : Push Changes
109
129
uses : ad-m/github-push-action@master
110
130
with :
111
131
github_token : ${{ secrets.GITHUB_TOKEN }}
112
132
tags : true
113
133
114
- outputs :
115
- CONDA_CHANGED : ${{ steps.verify-changed-files.outputs.files_changed }}
116
- PCAPKIT_VERSION : ${{ steps.get_version.outputs.PCAPKIT_VERSION }}
117
- PCAPKIT_CONDA_LABEL : ${{ steps.get_version.outputs.PCAPKIT_CONDA_LABEL }}
118
- PCAPKIT_BUILD : ${{ steps.get_version.outputs.PCAPKIT_BUILD }}
119
-
120
134
conda-dist :
121
135
runs-on : ubuntu-latest
122
- needs : [ conda-update ]
136
+ needs : [ conda-tag, conda- update ]
123
137
if : needs.conda-update.outputs.CONDA_CHANGED == 'true'
124
138
strategy :
125
139
matrix :
0 commit comments