Skip to content

Commit

Permalink
Merge pull request #46 from Flow-IPC/polish
Browse files Browse the repository at this point in the history
As earlier done for `ipc`: Workflow now invoked also when tag v* is c…
  • Loading branch information
ygoldfeld authored Jan 18, 2024
2 parents b2a2a0e + ab570fa commit 0e08e9d
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@ name: Flow pipeline
# The copy/pasting and "see comment in other file" types of comments are a bit unseemly.

on:
push:
# Want to merge to development tip? Should probably pass these builds/tests/doc generation first.
pull_request:
branches:
- main
pull_request:
push:
# Was able to merge to development tip? Should ensure these builds/tests/doc generation pass after the fact;
# plus auto-check-in generated docs into development tip branch as well (and signal web site to update accordingly).
branches:
- main
# Created release tag? Just in case, should ensure these builds/tests/doc generation pass after the fact still;
# plus signal web site to update accordingly (new release/docs for it).
tags:
- v*
# To create the button that runs a workflow manually (has to be in `main` at least):
workflow_dispatch:

Expand Down Expand Up @@ -511,3 +518,14 @@ jobs:
-H 'Authorization: token ${{ secrets.GIT_BOT_PAT }}' \
'https://api.github.com/repos/Flow-IPC/flow-ipc.github.io/dispatches' \
-d '{"event_type": "flow-sync-doc-event"}'
# See comments in Flow-IPC workflow counterpart. We use same techniques.
- name: Signal Pages if this is running due to release creation (then web site should update)
if: success() && startsWith(github.ref, 'refs/tags/v')
run: |
# Signal Pages if this is running due to release creation (then web site should update).
curl -X POST \
-H 'Accept: application/vnd.github.v3+json' \
-H 'Authorization: token ${{ secrets.GIT_BOT_PAT }}' \
'https://api.github.com/repos/Flow-IPC/flow-ipc.github.io/dispatches' \
-d '{"event_type": "flow-sync-doc-event", "client_payload": {"version": "${{ github.ref_name }}"}}'

0 comments on commit 0e08e9d

Please sign in to comment.