This action can be controlled externally to facilitate easy creation of new “Now Now”s.
We provide shortcuts that you can “duplicate” to facilitate this.
The action even appears in the share sheet so you can easily share eg. tweets:
- Should be easier to set up (the PAT is tedious)
- Both the action and our shortcut should support choosing priority
NOTE if you forked our template you will already have this.
You need .github/workflows/new-now-now.yml
in your GitTD repo containing:
name: New “Now Now”
on:
repository_dispatch:
types: new-now-now
jobs:
new-now-now:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 #FIXME needed so we can get the CURRENT issue below
- run: echo "CURRENT=$(git show origin/gh-pages:CURRENT)" >> $GITHUB_ENV
- uses: git-things-done/new-now-now@v1
with:
today: ${{ env.CURRENT }}
body: ${{ github.event.client_payload.body }}
Footnotes
-
Please note, the shortcut will request a Personal Access Token with
repo
scope. ↩