File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed
Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change 2525 - name : Run tests
2626 run : ./tests/smoke.sh
2727
28- release :
29- name : Release
30- runs-on : ubuntu-latest
31- needs : [shellcheck, test]
32- if : github.ref == 'refs/heads/main' && github.event_name == 'push'
33- steps :
34- - uses : actions/checkout@v4
35- with :
36- fetch-depth : 0
37-
38- - name : Get version
39- id : version
40- run : |
41- VERSION=$(sed -n 's/^VERSION="\([^"]*\)".*/\1/p' agent-persona)
42- echo "version=$VERSION" >> $GITHUB_OUTPUT
43-
44- - name : Check if tag exists
45- id : tag_check
46- run : |
47- if git rev-parse "v${{ steps.version.outputs.version }}" >/dev/null 2>&1; then
48- echo "exists=true" >> $GITHUB_OUTPUT
49- else
50- echo "exists=false" >> $GITHUB_OUTPUT
51- fi
52-
53- - name : Create Release
54- if : steps.tag_check.outputs.exists == 'false'
55- uses : softprops/action-gh-release@v1
56- with :
57- tag_name : v${{ steps.version.outputs.version }}
58- name : v${{ steps.version.outputs.version }}
59- generate_release_notes : true
60- env :
61- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments