File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed
Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -24,21 +24,20 @@ jobs:
2424 - name : Setup awesome-ci
2525 uses : fullstack-devops/awesome-ci-action@main
2626
27- - name : Create release
28- run : awesome-ci release create
27+ - name : collect infos and create release
28+ run : |
29+ awesome-ci pr info
30+ awesome-ci release create
2931 env :
3032 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3133
3234 - name : collect infos
3335 id : tag
3436 shell : bash
3537 run : |
36- awesome-ci pr info
37- echo "::set-output name=version::$(awesome-ci pr info -format 'version')"
38- echo "::set-output name=pr::$(awesome-ci pr info -format 'pr')"
38+ echo "::set-output name=version::$ACI_VERSION"
39+ echo "::set-output name=pr::$ACI_PR"
3940 echo "::set-output name=releaseid::$ACI_RELEASE_ID"
40- env :
41- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4241
4342 build :
4443 runs-on : ubuntu-latest
9291 key : awesome-ci-${{ github.sha }}
9392
9493 - name : Create Release
95- run : awesome-ci release publish -releaseid ${{ needs.generate_infos.outputs.releaseid }} -upload "file=out/$ARTIFACT1,file=out/$ARTIFACT2"
94+ run : awesome-ci release publish -releaseid "$ACI_RELEASE_ID" -upload "file=out/$ARTIFACT1,file=out/$ARTIFACT2"
9695 env :
9796 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
97+ ACI_RELEASE_ID : ${{ needs.generate_infos.outputs.releaseid }}
9898 ARTIFACT1 : awesome-ci_${{ needs.generate_infos.outputs.version }}_amd64
9999 ARTIFACT2 : awesome-ci_${{ needs.generate_infos.outputs.version }}_arm64
Original file line number Diff line number Diff line change @@ -23,16 +23,15 @@ jobs:
2323 uses : fullstack-devops/awesome-ci-action@main
2424
2525 - name : collect infos
26+ run : awesome-ci pr info -number ${{ github.event.pull_request.number }}
27+ env :
28+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29+ - name : export infos
2630 id : tag
2731 shell : bash
2832 run : |
29- awesome-ci pr info -number ${{ github.event.pull_request.number }}
30- export
31- echo "::set-output name=releaseid::$ACI_RELEASE_ID"
3233 echo "::set-output name=version::$ACI_VERSION"
3334 echo "::set-output name=pr::$ACI_PR"
34- env :
35- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3635
3736 build :
3837 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments