File tree 1 file changed +4
-15
lines changed
1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,16 @@ jobs:
12
12
publish-to-npm :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - name : Check workflow runs in a release branch
15
+ - name : Check workflow runs in a release branch or is CIM release
16
16
run : |
17
- if [[ "${{ github.event.release.target_commitish }}" != *releases* ]]; then
18
- echo "Expecting to be in a release branch, but we are in: ${{ github.event.release.target_commitish }}"
17
+ if [[ "${{ github.event.release.target_commitish }}" != *releases* || ! "$GITHUB_REF_NAME" =~ -cim$ ]]; then
18
+ echo "OCM: Expecting to be in a release branch, but we are in: ${{ github.event.release.target_commitish }}"
19
+ echo "CIM: Not a CIM release, since tag does not end with '-cim'. Tag is: $GITHUB_REF_NAME"
19
20
exit 1
20
21
fi
21
22
22
23
- uses : actions/checkout@v3
23
24
with :
24
- token : ${{ secrets.PUSH_TO_PROTECTED_BRANCH }}
25
25
ref : ${{ github.event.release.target_commitish }}
26
26
fetch-depth : 0
27
27
78
78
echo "Retrying..."
79
79
done
80
80
done
81
-
82
- - name : Update the repo
83
- run : |
84
- for LIB in $(echo ${LIBS}); do
85
- git add libs/"${LIB}"/package.json
86
- done
87
- git add apps/assisted-ui/package.json
88
- git commit -m "Version ${GITHUB_REF_NAME}"
89
- git tag -f -a ${GITHUB_REF_NAME} -m "${GITHUB_REF_NAME}"
90
- git push origin ${GITHUB_REF_NAME} --force
91
- git push origin ${{ github.event.release.target_commitish }} --force
You can’t perform that action at this time.
0 commit comments