Skip to content
This repository was archived by the owner on Jul 25, 2023. It is now read-only.

Commit f261d9c

Browse files
authored
fix: correct npm install issue on goals caching (#26)
* fix: correct npm install issue * refactor: use @open-sauced org templates
1 parent f9c4f8c commit f261d9c

File tree

5 files changed

+26
-86
lines changed

5 files changed

+26
-86
lines changed

.github/PULL_REQUEST_TEMPLATE.md

-54
This file was deleted.

.github/workflows/goals-caching.yml

+24-25
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
11
name: push issues data to goals
22

33
on:
4-
issues:
5-
types: ["opened", "edited", "deleted", "labeled", "unlabeled"]
4+
issues:
5+
types:
6+
- opened
7+
- edited
8+
- deleted
9+
- labeled
10+
- unlabeled
611
schedule:
712
- cron: 42 1 * * 2,5
8-
13+
914
jobs:
1015
sauce-grab:
1116
name: Open Sauced Issue Caching
17+
if: github.repository_owner != 'open-sauced'
1218
runs-on: ubuntu-latest
1319
steps:
14-
- uses: actions/checkout@v2
15-
- name: Build
16-
run: npm install
17-
- uses: open-sauced/actions/goals-caching@main
18-
if: github.repository_owner != 'open-sauced'
19-
env:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21-
LOGIN: ${{ github.repository_owner }}
22-
- name: Set up Git
23-
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
run: |
26-
git config user.name GitHub
27-
git config user.email noreply@github.com
28-
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
29-
- name: Commit and push changes
30-
run: |
31-
git add .
32-
if output=$(git status --porcelain) && [ ! -z "$output" ]; then
33-
git commit --author "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" --message "update the goals cache"
34-
git push
35-
fi
20+
- uses: actions/checkout@v2
21+
22+
- uses: open-sauced/actions/goals-caching@main
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
LOGIN: ${{ github.repository_owner }}
26+
27+
- name: "🚀 Commit changes"
28+
uses: stefanzweifel/git-auto-commit-action@v4
29+
with:
30+
file_pattern: ./*.json
31+
commit_message: "chore: update the goals cache"
32+
commit_user_name: open-sauced[bot]
33+
commit_user_email: 63161813+open-sauced[bot]@users.noreply.github.com
34+

.github/workflows/release-management.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ name: Release Management
22

33
on:
44
push:
5-
# branches to consider in the event; optional, defaults to all
65
branches:
76
- master
87

98
jobs:
109
update_draft_release:
1110
runs-on: ubuntu-latest
11+
if: github.repository_owner == 'open-sauced'
1212
steps:
13-
# Drafts your next Release notes as Pull Requests are merged into "master"
1413
- uses: toolmantim/release-drafter@v5.2.0
15-
if: github.repository_owner == 'open-sauced'
1614
env:
1715
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0
1+
0.2.0

package-lock.json

-3
This file was deleted.

0 commit comments

Comments
 (0)