Skip to content

Commit c023f92

Browse files
authored
Merge pull request #72 from Zarquan/20260210-zrq-github-workflows-04
Notes ....
2 parents b06bcbc + 82b71f9 commit c023f92

1 file changed

Lines changed: 68 additions & 0 deletions

File tree

notes/zrq/20260210-01-github-workflows.txt

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ status code: 401, reason phrase: Unauthorized (401)
149149
# Edit the spring pom.
150150
# Edit the workflow to add some debug.
151151

152+
git add .github/workflows/build-packages.yml
152153
git add codegen/java/spring/pom.xml
153154
git add notes/zrq/20260210-01-github-workflows.txt
154155

@@ -158,10 +159,73 @@ status code: 401, reason phrase: Unauthorized (401)
158159

159160
popd
160161

162+
#
163+
# Create and merge a pull request on GitHub ....
164+
# ... and it works.
165+
#
166+
167+
source "${HOME:?}/calycopis.env"
168+
pushd "${TREBULA_CODE:?}"
169+
170+
git checkout main
171+
172+
git fetch upstream
173+
174+
git merge upstream/main
175+
176+
git push
177+
178+
git checkout -d "${newbranch:?}"
179+
180+
popd
181+
182+
#
183+
# The repository id in the POM Needs to match the
184+
# server id created by the actions/setup-java step.
185+
#
186+
187+
pom.xml
188+
<repository>
189+
<id>github</id>
190+
<name>IVOA packages on GitHub</name>
191+
<url>https://maven.pkg.github.com/ivoa/Calycopis-schema</url>
192+
</repository>
193+
194+
settings.xml
195+
<server>
196+
<id>github</id>
197+
<username>${env.GITHUB_ACTOR}</username>
198+
<password>${env.GITHUB_TOKEN}</password>
199+
</server>
200+
201+
#
202+
# Last round to tidy things up ...
203+
#
204+
205+
branchname=github-workflows
206+
newbranch=$(date '+%Y%m%d')-zrq-${branchname:?}-04
207+
208+
source "${HOME:?}/calycopis.env"
209+
pushd "${TREBULA_CODE:?}"
210+
211+
git checkout main
161212

213+
git checkout -b "${newbranch:?}"
162214

215+
# Edit the notes ...
163216

217+
git add notes/zrq/20260210-01-github-workflows.txt
164218

219+
git commit -m "Guessing ...."
220+
221+
git push --set-upstream origin "${newbranch:?}"
222+
223+
popd
224+
225+
#
226+
# Create and merge a pull request on GitHub ....
227+
# ... and it works.
228+
#
165229

166230
source "${HOME:?}/calycopis.env"
167231
pushd "${TREBULA_CODE:?}"
@@ -178,3 +242,7 @@ status code: 401, reason phrase: Unauthorized (401)
178242

179243
popd
180244

245+
246+
247+
248+

0 commit comments

Comments
 (0)