-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 1.11 KB
/
goals-caching.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: push issues data to goals
on:
issues:
types: ["opened", "edited", "deleted", "labeled", "unlabeled"]
schedule:
- cron: 42 1 * * 2,5
jobs:
sauce-grab:
name: Open Sauced Issue Caching
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: npm install
- uses: open-sauced/actions/goals-caching@main
if: github.repository_owner != 'open-sauced'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LOGIN: ${{ github.repository_owner }}
- name: Set up Git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name GitHub
git config user.email [email protected]
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
- name: Commit and push changes
run: |
git add .
if output=$(git status --porcelain) && [ ! -z "$output" ]; then
git commit --author "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" --message "update the goals cache"
git push
fi