https://github.com/bots-house/github-actions-upstream-watch
👀 Trigger Github Actions Workflow when commit to another repo
https://github.com/bots-house/github-actions-upstream-watch
github-actions golang microservice
Last synced: 7 months ago
JSON representation
👀 Trigger Github Actions Workflow when commit to another repo
- Host: GitHub
- URL: https://github.com/bots-house/github-actions-upstream-watch
- Owner: bots-house
- License: mit
- Created: 2020-11-05T18:56:26.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-25T06:59:45.000Z (about 3 years ago)
- Last Synced: 2024-06-21T18:05:19.927Z (almost 2 years ago)
- Topics: github-actions, golang, microservice
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-actions-upstream-watch 
Trigger Github Actions Workflow when someone commit to another repo.
## Usage
### Docker Compose
```yaml
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
```