1+ # Based on https://github.com/ml-tooling/universal-build/blob/v0.6.12/workflows/build-pipeline.yml
12name : release-pipeline
23
34on :
1213env :
1314 VERSION : ${{ secrets.VERSION }}
1415 BRANCH_PREFIX : " release/v"
15- ACTIONS_ALLOW_UNSECURE_COMMANDS : true # TODO: only needed until act supports the new way
1616 DEFAULT_BRANCH : main
1717
1818jobs :
@@ -22,18 +22,18 @@ jobs:
2222 - if : ${{ github.event.milestone != null && github.event.milestone.title != null }}
2323 name : set-milestone-version
2424 run : |
25- echo "::set-env name= VERSION:: $(sed "s/^v//" <<< "${{ github.event.milestone.title }}")"
26- echo "::set-env name= PR_MILESTONE_LINK:: -M ${{ github.event.milestone.title }}"
25+ echo "VERSION= $(sed "s/^v//" <<< "${{ github.event.milestone.title }}")" >> $GITHUB_ENV
26+ echo "PR_MILESTONE_LINK= -M ${{ github.event.milestone.title }}" >> $GITHUB_ENV
2727 - if : ${{ github.event.inputs != null && github.event.inputs.version != null }}
2828 name : set-input-version
29- run : echo "::set-env name= VERSION:: ${{ github.event.inputs.version }}"
29+ run : echo "VERSION= ${{ github.event.inputs.version }}" >> $GITHUB_ENV
3030 - name : check-version
3131 run : ' if [[ ! "${{ env.VERSION }}" =~ ^([0-9]+\.[0-9]+\.[0-9]+.*)$ ]]; then echo "The version is not valid: ${{ env.VERSION }}"; exit 1; fi'
3232 - name : set-github-token
33- run : echo "::set-env name= GITHUB_TOKEN:: ${{ secrets.GITHUB_TOKEN }}"
33+ run : echo "GITHUB_TOKEN= ${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
3434 # Set host ip to env variable to be uside within container actions
3535 - name : set-host-ip
36- run : echo "::set-env name= _HOST_IP:: $(hostname -I | cut -d ' ' -f 1)"
36+ run : echo "_HOST_IP= $(hostname -I | cut -d ' ' -f 1)" >> $GITHUB_ENV
3737 # Fix git version for act if github token is provided
3838 - if : ${{ env.GITHUB_ACTOR == 'nektos/act' && env.GITHUB_TOKEN != null && env.GITHUB_TOKEN != '' }}
3939 name : install-latest-git
0 commit comments