@@ -31,53 +31,11 @@ jobs:
3131 echo "You can only run a release from the main branch, you are trying to run it from ${BRANCHNAME}"
3232 exit 1
3333 fi
34-
35- fetch-data-plans :
36- name : " Fetch Data Plan"
37- runs-on : ubuntu-latest
38- needs : confirm-main-branch
39- steps :
40- - name : Checkout
41- uses : actions/checkout@v2
42-
43- - name : Use Node.js
44- uses : actions/setup-node@v1
45- with :
46- node-version : ' 16.x'
47-
48- - name : Install mP CLI
49- run : npm install -g @mparticle/cli
50-
51- - name : Fetch Data Plans with mp CLI
52- id : fetch-data-plans
53- env :
54- WORKSPACE_ID : ${{ secrets.HIGGS_SHOP_WORKSPACE_ID }}
55- CLIENT_ID : ${{ secrets.HIGGS_SHOP_CLIENT_ID }}
56- CLIENT_SECRET : ${{ secrets.HIGGS_SHOP_CLIENT_SECRET }}
57- run : |
58- mp planning:data-plan-versions:fetch --dataPlanId=higgs_shop_basic_data_plan --versionNumber=1 --outFile=dataplans/higgs_shop_basic_data_plan_1.json --workspaceId=$WORKSPACE_ID --clientId=$CLIENT_ID --clientSecret=$CLIENT_SECRET
59-
60- - name : Archive Data Plan Artifacts
61- uses : actions/upload-artifact@v3
62- with :
63- name : higgs-shop-dataplan
64- path : core-sdk-samples/higgs-shop-sample-app/dataplans/
65-
66- - name : Commit Data Plans to Git
67- uses : EndBug/add-and-commit@v9
68- with :
69- message : Update Higgs Shop Data Plan
70- add : core-sdk-samples/higgs-shop-sample-app/dataplans
71- author_name : mparticle-bot
72- 73- committer_name : mparticle-bot
74- committer_email :
[email protected] 75-
7634
7735 create-release-branch :
7836 name : " Create Release Branch"
7937 runs-on : ubuntu-18.04
80- needs : [ confirm-main-branch, fetch-data-plans]
38+ needs : confirm-main-branch
8139 steps :
8240 - name : " Checkout development branch"
8341 uses : actions/checkout@v2
0 commit comments