mirror of
https://github.com/iptv-org/epg
synced 2026-03-21 19:30:52 -04:00
fix: passes GitHub token into update script
This commit is contained in:
2
.github/workflows/update.yml
vendored
2
.github/workflows/update.yml
vendored
@@ -32,6 +32,8 @@ jobs:
|
||||
run: npm run channels:lint
|
||||
- name: update sites.md
|
||||
run: npm run sites:update
|
||||
env:
|
||||
GH_TOKEN: ${{ steps.create-app-token.outputs.token }}
|
||||
- run: git status
|
||||
- name: commit changes to sites.md
|
||||
if: ${{ !env.ACT && github.ref == 'refs/heads/master' }}
|
||||
|
||||
@@ -80,7 +80,9 @@ export async function loadJs(filepath: string) {
|
||||
|
||||
export async function loadIssues(props?: { labels: string[] | string }) {
|
||||
const CustomOctokit = Octokit.plugin(paginateRest, restEndpointMethods)
|
||||
const octokit = new CustomOctokit()
|
||||
const octokit = new CustomOctokit({
|
||||
auth: process.env.GH_TOKEN
|
||||
})
|
||||
|
||||
let labels = ''
|
||||
if (props && props.labels) {
|
||||
|
||||
Reference in New Issue
Block a user