@@ -102,7 +102,6 @@ jobs:
102102 working-directory : ./tools/store-type-merge
103103 run : |
104104 python main.py --repo-name ${{ env.KFUTIL_ARG }} --ref ${{ env.TARGET_REPO_BRANCH }}
105- cat store_types.json
106105 env :
107106 GITHUB_TOKEN : ${{ secrets.V2BUILDTOKEN }}
108107
@@ -134,6 +133,10 @@ jobs:
134133 run : |
135134 echo "Saving original store_types.json as store_types.sav.json"
136135 cp -f ./tools/store-type-merge/store_types.json ./merge-folder/store_types.json
136+ mkdir -p ./merge-folder/cmd || true
137+ cp -f ./tools/store-type-merge/store_types.json ./merge-folder/cmd/store_types.json # this necessary?
138+ ls -la ./merge-folder/
139+ ls -la ./merge-folder/cmd/
137140
138141 # Diff the new json against the saved copy and set an UPDATE_FILE variable
139142 - name : Diff the results
@@ -154,7 +157,9 @@ jobs:
154157 env :
155158 GITHUB_TOKEN : ${{ secrets.SDK_SYNC_PAT }}
156159 with :
157- add : store_types.json --force
160+ add : |
161+ store_types.json
162+ ./cmd/store_types.json --force
158163 message : Update store_types.json for ${{env.KFUTIL_ARG}}:${{env.TARGET_REPO_BRANCH}}
159164 author_name : Keyfactor
160165@@ -167,7 +172,9 @@ jobs:
167172 env :
168173 GITHUB_TOKEN : ${{ secrets.SDK_SYNC_PAT }}
169174 with :
170- add : store_types.json --force
175+ add : |
176+ store_types.json
177+ ./cmd/store_types.json --force
171178 message : Update store_types.json for ${{env.KFUTIL_ARG}}:${{env.TARGET_REPO_BRANCH}}
172179 author_name : Keyfactor
173180@@ -182,7 +189,7 @@ jobs:
182189 console.log("Commit to ${{env.KFUTIL_ARG}} for PR")
183190 const owner = context.repo.owner;
184191 const repo = context.repo.repo;
185- const baseBranch = ' main';
192+ const baseBranch = context.ref.replace('refs/heads/', ' main'); // Default base branch is main
186193 const newBranch = '${{env.KFUTIL_ARG}}';
187194 const response = await github.rest.pulls.create({
188195 owner,
0 commit comments