Skip to content

Commit 9afc3c0

Browse files
Update release.yml
Added tagging for documentation and osmp repo Signed-off-by: Philip Windecker <philip.windecker@avenyr.de>
1 parent cce4964 commit 9afc3c0

1 file changed

Lines changed: 27 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,29 @@ jobs:
2828
- name: Set date
2929
id: date_step
3030
run: echo "docdate=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
31-
31+
32+
tagging_update:
33+
name: Update OSMP & Documentation
34+
runs-on: ubuntu-22.04
35+
needs: [setup]
36+
steps:
37+
- name: Update OSMP
38+
uses: peter-evans/repository-dispatch@v2
39+
with:
40+
token: ${{ secrets.MACHINE_USER_PAT }}
41+
event-type: update-tag
42+
# repository: OpenSimulationInterface/osi-sensor-model-packaging
43+
repository: philipwindecker/osi-sensor-model-packaging
44+
client-payload: '{"tag": "${{needs.setup.outputs.output1}}-antora"}'
45+
- name: Update Documentation
46+
uses: peter-evans/repository-dispatch@v2
47+
with:
48+
token: ${{ secrets.MACHINE_USER_PAT }}
49+
event-type: update-tag
50+
# repository: OpenSimulationInterface/osi-documentation
51+
repository: philipwindecker/osi-documentation
52+
client-payload: '{"tag": "${{needs.setup.outputs.output1}}-antora"}'
53+
3254
## Antora job, responsible for creating the Antora output of the release
3355
antora:
3456
name: Generate Antora content
@@ -38,7 +60,8 @@ jobs:
3860
- name: Checkout Antora generator
3961
uses: actions/checkout@v3
4062
with:
41-
repository: OpenSimulationInterface/osi-antora-generator
63+
# repository: OpenSimulationInterface/osi-antora-generator
64+
repository: philipwindecker/osi-antora-generator
4265
path: antora
4366
submodules: true
4467
# Remove building branches for the main repositories. This will lead to Antora only using the tagged versions to build its content.
@@ -50,7 +73,6 @@ jobs:
5073
- name: Create run instructions
5174
run: |
5275
echo "#!/bin/bash
53-
5476
cd antora
5577
exec antora --stacktrace --fetch --clean site.yml" > antora.sh
5678
cat antora.sh
@@ -82,7 +104,8 @@ jobs:
82104
- name: Checkout sensor model packaging
83105
uses: actions/checkout@v3
84106
with:
85-
repository: OpenSimulationInterface/osi-sensor-model-packaging
107+
# repository: OpenSimulationInterface/osi-sensor-model-packaging
108+
repository: philipwindecker/osi-sensor-model-packaging
86109
path: dist/osi-sensor-model-packaging
87110
# Retrieve the Antora artifact from the previous job
88111
- name: Retrieve Antora artifact

0 commit comments

Comments
 (0)