1919 For new releases patch version defaults to 0 and for new-patch action patch version is auto increased.
2020
2121 required : true
22- default : ' next '
22+ default : ' 1.23 '
2323 type : string
2424permissions :
25- contents : read
26- issues : write
27- repository-projects : write
25+ contents : write
26+ pull-requests : write
2827jobs :
2928 run-release :
3029 runs-on : ubuntu-latest
@@ -38,25 +37,36 @@ jobs:
3837 echo "Version: ${{ github.event.inputs.version }}"
3938
4039 - name : Run Release Script
40+ env :
41+ GH_TOKEN : ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}
42+ GITHUB_TOKEN : ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}
4143 run : |
42- ./release-manager.sh \
44+ ./hack/ release-manager.sh \
4345 --action "${{ github.event.inputs.action }}" \
4446 --version "${{ github.event.inputs.version }}"
47+
4548 - name : Create Pull Request
49+ env :
50+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4652 run : |
53+ set -x
54+ git config user.name openshift-pipelines-bot
55+ git config user.email pipelines-extcomm@redhat.com
56+
4757 BASE_BRANCH=${GITHUB_REF#refs/heads/}
48- SOURCE_BRANCH=actions/hack /${{ github.event.inputs.action }}-${{ github.event.inputs.version }}
58+ SOURCE_BRANCH=actions/update /${{ github.event.inputs.action }}
4959
5060 git checkout -b ${SOURCE_BRANCH}
51- git add -f .
61+ git add -f config .github
5262
5363 if [[ -z $(git status --porcelain --untracked-files=no) ]]; then
5464 echo "No change, exiting"
5565 exit 0
5666 fi
5767
5868 git commit -F- <<EOF
59- [bot : ${{ github.event.inputs.version }}] Action: ${{ github.event.inputs.action }}"
69+ Release Action : ${{ github.event.inputs.action }} ${{ github.event.inputs.version }}
6070 EOF
6171
6272 git push -f origin ${SOURCE_BRANCH}
6575 echo "creating PR..."
6676 gh pr create -B ${BASE_BRANCH} -H ${SOURCE_BRANCH} --label=automated --fill
6777 fi
68-
69-
70- env :
71- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments