github-actions-upstream-watch

command module
v0.0.0-...-cd6a0a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 13 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL