We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 37112b0 + ce756e4 commit bb380caCopy full SHA for bb380ca
.github/workflows/update_marketingsolutions_preview_doc.yml
@@ -18,9 +18,7 @@ jobs:
18
run: |
19
git clone git@github.com:criteo/marketing-solutions-public-api-doc.git
20
cd marketing-solutions-public-api-doc
21
- # cut: to turn 'remotes/origin/<name>' to '<name>'
22
- # egrep: to keep only pattern vYYYY.MM . ie reject vYYYY.MM.dd and vYYYY.MM_merge_conflict_<sha>
23
- PREVIEW_BRANCH=$(git branch -a | grep origin | cut -d \/ -f3 | grep -E ^v[0-9]{4}\.[0-9]{2}$ | sort | tail -1)
+ PREVIEW_BRANCH=$(git branch -a | grep preview | cut -d '/' -f3)
24
git checkout $PREVIEW_BRANCH
25
OAS_DEST_NAME=criteo-api-1.json
26
OAS_DEST=reference/"$OAS_DEST_NAME"
0 commit comments