Skip to content

Commit fcd4106

Browse files
Update standardize-issue-titles.yml
1 parent 954d0ec commit fcd4106

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

.github/workflows/standardize-issue-titles.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,10 @@ jobs:
1818
with:
1919
node-version: '16'
2020

21-
- name: Install dependencies
22-
run: npm install @octokit/rest
23-
24-
- name: Standardize Issue Titles
25-
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
REPO_OWNER: githubevents
28-
REPO_NAME: open-source-friday
21+
- name: Create script file
2922
run: |
30-
node -e '
31-
const { Octokit } = require("@octokit/rest");
23+
cat > standardize-titles.mjs << 'EOF'
24+
import { Octokit } from '@octokit/rest';
3225
3326
const octokit = new Octokit({
3427
auth: process.env.GITHUB_TOKEN
@@ -69,4 +62,14 @@ jobs:
6962
}
7063
7164
updateIssues();
72-
'
65+
EOF
66+
67+
- name: Install dependencies
68+
run: npm install @octokit/rest
69+
70+
- name: Standardize Issue Titles
71+
env:
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
REPO_OWNER: githubevents
74+
REPO_NAME: open-source-friday
75+
run: node standardize-titles.mjs

0 commit comments

Comments
 (0)