File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ bump_alidist :
9+ runs-on : ubuntu-18.04
10+ steps :
11+ - run : curl -L https://github.com/github/hub/releases/download/v2.12.7/hub-linux-amd64-2.12.7.tgz | tar xz
12+ - run : |
13+ git config --global user.email ${{ secrets.GH_EMAIL }}
14+ git config --global user.name ${{ secrets.GH_USERNAME }}
15+ - run : git clone git://github.com/${{ secrets.ORG }}/alidist
16+ - run : |
17+ cd alidist
18+ CURRENT_VERSION=`cat ${{ secrets.MODULE }}.sh | grep "tag:" | awk '{print $2}'`
19+ sed -i "s/${CURRENT_VERSION}/${GITHUB_REF##*/}/g" ${{ secrets.MODULE }}.sh
20+ - run : |
21+ cd alidist
22+ git add .
23+ git commit -m "Bump ${{ secrets.MODULE }} to ${GITHUB_REF##*/}"
24+ git push "https://${{ secrets.GH_TOKEN }}@github.com/${{ secrets.ORG }}/alidist" HEAD:refs/heads/${{ secrets.MODULE }}-${GITHUB_REF##*/} -f > /dev/null 2>&1
25+ - run : |
26+ cd alidist
27+ GITHUB_TOKEN=${{ secrets.GH_TOKEN }} ../hub-linux-amd65-2.12.7/bin/hub pull-request -h ${{ secrets.MODULE }}-${GITHUB_REF##*/} -b master -m "Bump ${{ secrets.MODULE }} to ${GITHUB_REF##*/}"
28+
You can’t perform that action at this time.
0 commit comments