Skip to content

Commit 7b0f08d

Browse files
committed
.some(ts)
1 parent c6f9c9a commit 7b0f08d

15 files changed

Lines changed: 15925 additions & 0 deletions

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
- package-ecosystem: "npm"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
pull_request:
3+
paths:
4+
- '**/*.ts'
5+
- .github/workflows/ci.yml
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- run: npm ci
12+
env:
13+
NODE_ENV: development
14+
- run: npm test
15+
check-generated-dist:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- run: npm run dist
20+
- run: git diff --exit-code

.github/workflows/vx-tagger.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: vx Tagger
2+
on:
3+
release:
4+
types: [published, edited]
5+
jobs:
6+
tag:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: sersoft-gmbh/running-release-tags-action@v1
11+
with:
12+
github-token: ${{secrets.GITHUB_TOKEN}}
13+
update-full-release: true
14+
if: github.event.release.prerelease == false

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM node:16-alpine
2+
COPY dist dist
3+
ENTRYPOINT [ "node", "/dist/index.js" ]

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# “Forecast” for Git Things Done
2+
3+
An unsophisticated forecaster for [GitTD].
4+
Possibly it only works in the US.
5+
6+
**Fork, fix & improve!**
7+
8+
```yaml
9+
jobs:
10+
git-things-done:
11+
# [snip]
12+
- uses: git-things-done/porter@v1
13+
- uses: git-things-done/weather@v1
14+
with:
15+
latitude: … # https://www.latlong.net
16+
longitude: … # use ^^ to get your coordinates
17+
continue-on-error: true
18+
# ^^ HTTP can be flakey, let’s not fail the whole job
19+
```
20+
21+
[GitTD]: https://github.com/git-things-done

action.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: “Forecast” for Git Things Done
2+
description: >
3+
Inserts today’s forecast into today’s entry.
4+
inputs:
5+
token:
6+
default: ${{ github.token }}
7+
today:
8+
required: false
9+
longitude:
10+
required: true
11+
latitude:
12+
required: true
13+
runs:
14+
using: docker
15+
image: Dockerfile
16+
# ^^ because we want node 16 so we can use modern features

0 commit comments

Comments
 (0)