bots-house / github-actions-upstream-watch

πŸ‘€ Trigger Github Actions Workflow when commit to another repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

github-actions-upstream-watch CI

Trigger Github Actions Workflow when someone commit to another repo.

Usage

Docker Compose

version: '3.8'

volumes:
  watcher-state:
    driver: local

services:
  watcher:
    image: ghcr.io/bots-house/github-actions-upstream-watch:latest 
    environment: 
      # watch for new commits in github.com/tdlib/telegram-bot-api
      SRC_ORG: tdlib
      SRC_REPO: telegram-bot-api
      SRC_BRANCH: master
      
      # dispatch event upstream_commit to github.com/bots-house/docker-telegram-bot-api
      DST_ORG: bots-house
      DST_REPO: docker-telegram-bot-api
      DST_EVENT: upstream_commit

      # get this token from https://github.com/settings/tokens/new with repo:* perms
      TOKEN: {TOKEN}

      # check for new commits every 1 minute
      PERIOD: 1m
    volumes:
      - watcher-state:/data

About

πŸ‘€ Trigger Github Actions Workflow when commit to another repo

License:MIT License


Languages

Language:Go 86.6%Language:Dockerfile 10.7%Language:Shell 2.7%