Skip to content

Commit

Permalink
Don't dispatch until merged
Browse files Browse the repository at this point in the history
  • Loading branch information
graveland committed Oct 20, 2023
1 parent b53ab5f commit 4bb8556
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/publish_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,19 @@ jobs:
DOCKER_TAG_POSTFIX: ${{ matrix.docker_tag_postfix }}
run: make get-image-config check

dispatch-ha-image-published-event:
name: Dispatch HA image published event
needs: [ "check" ]
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- name: Dispatch event to Publish cloud images workflow
run: |
curl -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ${{ secrets.ORG_AUTOMATION_TOKEN }}" \
--request POST \
--data '{"event_type": "ha_image_published"}' \
https://api.github.com/repos/timescale/timescaledb-docker-cloud/dispatches
# dispatch-ha-image-published-event:
# name: Dispatch HA image published event
# needs: [ "check" ]
# if: ${{ github.event_name == 'push' }}
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
#
# steps:
# - name: Dispatch event to Publish cloud images workflow
# run: |
# curl -H "Accept: application/vnd.github.everest-preview+json" \
# -H "Authorization: token ${{ secrets.ORG_AUTOMATION_TOKEN }}" \
# --request POST \
# --data '{"event_type": "ha_image_published"}' \
# https://api.github.com/repos/timescale/timescaledb-docker-cloud/dispatches

0 comments on commit 4bb8556

Please sign in to comment.