File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
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
You can’t perform that action at this time.
0 commit comments