Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Switched repo targets and sources for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Philip WINDECKER (AVENYR GmbH) <[email protected]>
  • Loading branch information
philipwindecker committed Jan 17, 2024
1 parent 78e091c commit 4ccc031
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/antora-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ jobs:
with:
token: ${{ secrets.MACHINE_USER_PAT }}
event-type: antora-build-trigger
repository: OpenSimulationInterface/osi-antora-generator
repository: philipwindecker/osi-antora-generator
client-payload: '{"src": "${{ github.repository }}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "head_ref": "${{ github.head_ref }}"}'
4 changes: 2 additions & 2 deletions .github/workflows/protobuf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ jobs:
run: sudo make install && sudo ldconfig

- name: Install proto2cpp
run: git clone --depth 1 https://github.com/OpenSimulationInterface/proto2cpp.git
run: git clone --depth 1 https://github.com/philipwindecker/proto2cpp.git

- name: Prepare C++ Build
run: mkdir build

# Versioning
- name: Get versioning
id: get_version
run: echo "VERSION=$(git describe --always)" >> $GITHUB_OUTPUT
run: echo "VERSION=$(git describe --always)" >> $GITHUB_OUTPUT

- name: Prepare Documentation Build
run: |
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
id: var_step
working-directory: dist/open-simulation-interface
run: |
echo "version=$(git describe --tags --always | sed 's/^v//')" >> $GITHUB_OUTPUT
echo "version=$(git describe --tags --always | sed 's/^v//')" >> $GITHUB_OUTPUT
echo "suffix=$(git describe --tags --always | sed -r 's/^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+//')" >> $GITHUB_OUTPUT
# Set the release date (current date)
- name: Set date
id: date_step
run: echo "docdate=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

## Tag and update related repositories before checking them out for Antora and the deliverables
tagging_update:
name: Update OSMP & Documentation
Expand All @@ -43,32 +43,32 @@ jobs:
with:
token: ${{ secrets.MACHINE_USER_PAT }}
event-type: update-tag
repository: OpenSimulationInterface/osi-sensor-model-packaging
repository: philipwindecker/osi-sensor-model-packaging
client-payload: '{"tag": "v${{needs.setup.outputs.output1}}", "suffix": "${{needs.setup.outputs.output3}}", "source_repo": "${{ github.repository }}"}'
- name: Update Documentation
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.MACHINE_USER_PAT }}
event-type: update-tag
repository: OpenSimulationInterface/osi-documentation
repository: philipwindecker/osi-documentation
client-payload: '{"tag": "v${{needs.setup.outputs.output1}}"}'
- name: Provide downstream repos some time
uses: whatnick/[email protected]
with:
time: '1m'


## Antora job, responsible for creating the Antora output of the release
antora:
name: Generate Antora content
runs-on: ubuntu-22.04
needs: [tagging_update]
steps:
steps:
# Check out the Antora generator
- name: Checkout Antora generator
uses: actions/checkout@v4
with:
repository: OpenSimulationInterface/osi-antora-generator
repository: philipwindecker/osi-antora-generator
path: antora
submodules: true
# Remove building branches for the main repositories. This will lead to Antora only using the tagged versions to build its content.
Expand All @@ -95,10 +95,10 @@ jobs:
# Upload the created artifact for later jobs to use
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
with:
name: antora
path: antora/site

## Step for creating the zip file with all deliverables
deliverables:
name: Create deliverables package
Expand All @@ -114,7 +114,7 @@ jobs:
- name: Checkout sensor model packaging
uses: actions/checkout@v4
with:
repository: OpenSimulationInterface/osi-sensor-model-packaging
repository: philipwindecker/osi-sensor-model-packaging
path: dist/osi-sensor-model-packaging
fetch-depth: 0
# Retrieve the Antora artifact from the previous job
Expand All @@ -139,13 +139,13 @@ jobs:
name="ASAM OSI"
version="Version: ${{needs.setup.outputs.output1}}"
date="Date: ${{needs.setup.outputs.output2}}"
echo "/$(repeat $char_count_header "*")" > README.txt
fill $char_count "$name" >> README.txt
fill $char_count "$version" >> README.txt
fill $char_count "$date" >> README.txt
echo "$(repeat $char_count_header "*")/" >> README.txt
echo "The deliverables of ASAM OSI v${{needs.setup.outputs.output1}} include:
echo "The deliverables of ASAM OSI v${{needs.setup.outputs.output1}} include:
- ASAM_OSI_Standard_${{needs.setup.outputs.output1}}
- open_simulation_interface_${{needs.setup.outputs.output1}}
Expand All @@ -155,7 +155,7 @@ jobs:
# Package all collected deliverables
- name: Zip Release
uses: TheDoctor0/[email protected]
with:
with:
filename: ASAM_OSI_${{needs.setup.outputs.output1}}.zip
directory: dist
# Upload the created artifact for the publish job
Expand Down Expand Up @@ -188,5 +188,5 @@ jobs:
with:
token: ${{ secrets.MACHINE_USER_PAT }}
event-type: antora-build-trigger
repository: OpenSimulationInterface/osi-antora-generator
repository: philipwindecker/osi-antora-generator
client-payload: '{"src": "${{ github.repository }}", "ref": "master"}'

0 comments on commit 4ccc031

Please sign in to comment.