6969 repository : ' keyfactor/kfutil'
7070 sparse-checkout : |
7171 .github
72+ cmd
7273 path : ' ./merge-folder/'
7374 token : ${{ secrets.V2BUILDTOKEN }}
7475 ref : ' ${{env.KFUTIL_ARG}}'
8182 repository : ' keyfactor/kfutil'
8283 sparse-checkout : |
8384 .github
85+ cmd
8486 path : ' ./merge-folder/'
8587 token : ${{ secrets.V2BUILDTOKEN }}
8688
@@ -102,7 +104,6 @@ jobs:
102104 working-directory : ./tools/store-type-merge
103105 run : |
104106 python main.py --repo-name ${{ env.KFUTIL_ARG }} --ref ${{ env.TARGET_REPO_BRANCH }}
105- cat store_types.json
106107 env :
107108 GITHUB_TOKEN : ${{ secrets.V2BUILDTOKEN }}
108109
@@ -134,6 +135,10 @@ jobs:
134135 run : |
135136 echo "Saving original store_types.json as store_types.sav.json"
136137 cp -f ./tools/store-type-merge/store_types.json ./merge-folder/store_types.json
138+ mkdir -p ./merge-folder/cmd || true
139+ cp -f ./tools/store-type-merge/store_types.json ./merge-folder/cmd/store_types.json # this necessary?
140+ ls -la ./merge-folder/
141+ ls -la ./merge-folder/cmd/
137142
138143 # Diff the new json against the saved copy and set an UPDATE_FILE variable
139144 - name : Diff the results
@@ -154,7 +159,9 @@ jobs:
154159 env :
155160 GITHUB_TOKEN : ${{ secrets.SDK_SYNC_PAT }}
156161 with :
157- add : store_types.json --force
162+ add : |
163+ store_types.json
164+ ./cmd/store_types.json --force
158165 message : Update store_types.json for ${{env.KFUTIL_ARG}}:${{env.TARGET_REPO_BRANCH}}
159166 author_name : Keyfactor
160167@@ -167,7 +174,9 @@ jobs:
167174 env :
168175 GITHUB_TOKEN : ${{ secrets.SDK_SYNC_PAT }}
169176 with :
170- add : store_types.json --force
177+ add : |
178+ store_types.json
179+ ./cmd/store_types.json --force
171180 message : Update store_types.json for ${{env.KFUTIL_ARG}}:${{env.TARGET_REPO_BRANCH}}
172181 author_name : Keyfactor
173182@@ -182,7 +191,7 @@ jobs:
182191 console.log("Commit to ${{env.KFUTIL_ARG}} for PR")
183192 const owner = context.repo.owner;
184193 const repo = context.repo.repo;
185- const baseBranch = ' main';
194+ const baseBranch = context.ref.replace('refs/heads/', ' main'); // Default base branch is main
186195 const newBranch = '${{env.KFUTIL_ARG}}';
187196 const response = await github.rest.pulls.create({
188197 owner,
0 commit comments