From 64b6558005dd85d53c99b5eac23e7d8c25d8e7e8 Mon Sep 17 00:00:00 2001 From: James Gebbie-Rayet Date: Sat, 3 Oct 2026 21:33:46 +0100 Subject: [PATCH 1/3] Create web-meta.yaml for Python course Added metadata for a Python programming course. --- .github/web-meta.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .github/web-meta.yaml diff --git a/.github/web-meta.yaml b/.github/web-meta.yaml new file mode 100644 index 0000000..e280d82 --- /dev/null +++ b/.github/web-meta.yaml @@ -0,0 +1,5 @@ +name: An Introduction to Python Programming +category: coding +authors: "" +shortdesc: This course will introduce more intermediate features of Python that are useful for biomolecular modellers. +longdesc: "" From f5a72cfa65c9ee42fa6135d643a0f7e1fc80e95c Mon Sep 17 00:00:00 2001 From: James Gebbie-Rayet Date: Sat, 3 Oct 2026 21:56:22 +0100 Subject: [PATCH 2/3] Change event type from 'build' to 'workshops' --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4e44c27..54603a6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -175,5 +175,5 @@ jobs: with: token: ${{ secrets.BUILD_TOKEN }} repository: ccpbiosim/ccpbiosim.github.io - event-type: build + event-type: workshops client-payload: '{"repo": "${{ github.event.repository.name }}", "tag": "${{ needs.build.outputs.tag }}"}' From a7e55754d425362bc8fef911d1139ab9888727b4 Mon Sep 17 00:00:00 2001 From: James Gebbie-Rayet Date: Mon, 5 Oct 2026 20:31:36 +0100 Subject: [PATCH 3/3] Add checkout step and build dispatch payload --- .github/workflows/build.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 54603a6..48ad975 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -170,10 +170,24 @@ jobs: run: | docker buildx imagetools inspect ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:latest + - name: checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Build dispatch payload + id: payload + env: + REPO: ${{ github.event.repository.name }} + TAG: ${{ needs.build.outputs.tag }} + run: | + payload=$(yq -o=json '.' web-meta.yaml \ + | jq -c --arg repo "$REPO" --arg tag "$TAG" \ + '{repo: $repo, tag: $tag, meta: .}') + echo "json=$payload" >> "$GITHUB_OUTPUT" + - name: Post version update to dash uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1 with: token: ${{ secrets.BUILD_TOKEN }} repository: ccpbiosim/ccpbiosim.github.io - event-type: workshops - client-payload: '{"repo": "${{ github.event.repository.name }}", "tag": "${{ needs.build.outputs.tag }}"}' + event-type: workshops + client-payload: ${{ steps.payload.outputs.json }}