fetch remote source repo and update current repo
In default, this action will diff source-template-repo
and current-repo
by filepath recursive
deleted:
ifcurrent/a.file
not exist insource
,a.file
will be deleted.add:
ifcurrent/a.file
not exist, butsource/a.file
exist,a.file
will be added.update:
ifcurrent/a.file
andsource/a.file
exist, force updatecurrent/a.file
Friendly pr
- read changelog as pr body
- bump version like dependabot
- create file
updater.yml
in.github/workflows
- add following code to
updater.yml
file
name: "updater"
on:
schedule:
- cron: "0 23 * * *"
jobs:
# test action works running from the schedule
cronjob:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ohmycheatsheet/actions-updater@v1
with:
repo: ohmycheatsheet/cheatsheets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name | description | type | required |
---|---|---|---|
repo | (input) source repo | string | true |
ignores | (input) ignore update files | string[] | false |
GITHUB_TOKEN | (env) create/update pr | string | true |
Setup environment
- copy
.env.sample
file - replace
GITHUB_TOKEN
Users shouldn't consume the action from master since that would be latest code and actions can break compatibility between major versions.
Checkin to the v1 release branch
pnpm
pnpm run prepare
ga .
gpsup
See the versioning documentation, the toolkit documentation for the various packages.
See the toolkit documentation for the various packages.
The action.yml defines the inputs and output for your action.
Update the action.yml with your name, description, inputs and outputs for your action.
See the documentation
built with ❤️ by 😼