mirror of
https://github.com/iptv-org/iptv
synced 2025-12-18 11:27:34 -05:00
Merge pull request #28108 from iptv-org/patch-2025.10.3
Patch 2025.10.3
This commit is contained in:
4
.github/workflows/check.yml
vendored
4
.github/workflows/check.yml
vendored
@@ -6,6 +6,8 @@ on:
|
|||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
permissions:
|
||||||
|
packages: read
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -30,7 +32,7 @@ jobs:
|
|||||||
- name: Setup .npmrc for GitHub Packages
|
- name: Setup .npmrc for GitHub Packages
|
||||||
if: steps.files.outputs.any_changed == 'true'
|
if: steps.files.outputs.any_changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" >> .npmrc
|
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
|
||||||
echo "@iptv-org:registry=https://npm.pkg.github.com/" >> .npmrc
|
echo "@iptv-org:registry=https://npm.pkg.github.com/" >> .npmrc
|
||||||
echo "always-auth=true" >> .npmrc
|
echo "always-auth=true" >> .npmrc
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
4
.github/workflows/format.yml
vendored
4
.github/workflows/format.yml
vendored
@@ -3,6 +3,8 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
# schedule:
|
# schedule:
|
||||||
# - cron: "0 12 * * *"
|
# - cron: "0 12 * * *"
|
||||||
|
permissions:
|
||||||
|
packages: read
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -24,7 +26,7 @@ jobs:
|
|||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- name: Setup .npmrc for GitHub Packages
|
- name: Setup .npmrc for GitHub Packages
|
||||||
run: |
|
run: |
|
||||||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" >> .npmrc
|
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
|
||||||
echo "@iptv-org:registry=https://npm.pkg.github.com/" >> .npmrc
|
echo "@iptv-org:registry=https://npm.pkg.github.com/" >> .npmrc
|
||||||
echo "always-auth=true" >> .npmrc
|
echo "always-auth=true" >> .npmrc
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
4
.github/workflows/update.yml
vendored
4
.github/workflows/update.yml
vendored
@@ -3,6 +3,8 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
permissions:
|
||||||
|
packages: read
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -24,7 +26,7 @@ jobs:
|
|||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- name: Setup .npmrc for GitHub Packages
|
- name: Setup .npmrc for GitHub Packages
|
||||||
run: |
|
run: |
|
||||||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" >> .npmrc
|
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
|
||||||
echo "@iptv-org:registry=https://npm.pkg.github.com/" >> .npmrc
|
echo "@iptv-org:registry=https://npm.pkg.github.com/" >> .npmrc
|
||||||
echo "always-auth=true" >> .npmrc
|
echo "always-auth=true" >> .npmrc
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
@@ -181,9 +181,9 @@ For scripts to work, you must have [Node.js](https://nodejs.org/en) installed on
|
|||||||
|
|
||||||
To run scripts use the `npm run <script-name>` command.
|
To run scripts use the `npm run <script-name>` command.
|
||||||
|
|
||||||
- `act:check`: allows to run the [check](https://github.com/iptv-org/iptv/blob/master/.github/workflows/check.yml) workflow locally. Depends on [nektos/act](https://github.com/nektos/act).
|
- `act:check`: allows to run the [check](https://github.com/iptv-org/iptv/blob/master/.github/workflows/check.yml) workflow locally. Depends on [nektos/gh-act](https://github.com/nektos/gh-act).
|
||||||
- `act:format`: allows to test the [format](https://github.com/iptv-org/iptv/blob/master/.github/workflows/update.yml) workflow locally. Depends on [nektos/act](https://github.com/nektos/act).
|
- `act:format`: allows to test the [format](https://github.com/iptv-org/iptv/blob/master/.github/workflows/update.yml) workflow locally. Depends on [nektos/gh-act](https://github.com/nektos/gh-act).
|
||||||
- `act:update`: allows to test the [update](https://github.com/iptv-org/iptv/blob/master/.github/workflows/update.yml) workflow locally. Depends on [nektos/act](https://github.com/nektos/act).
|
- `act:update`: allows to test the [update](https://github.com/iptv-org/iptv/blob/master/.github/workflows/update.yml) workflow locally. Depends on [nektos/gh-act](https://github.com/nektos/gh-act).
|
||||||
- `api:load`: downloads the latest channel and stream data from the [iptv-org/api](https://github.com/iptv-org/api).
|
- `api:load`: downloads the latest channel and stream data from the [iptv-org/api](https://github.com/iptv-org/api).
|
||||||
- `api:generate`: generates a JSON file with all streams for the [iptv-org/api](https://github.com/iptv-org/api) repository.
|
- `api:generate`: generates a JSON file with all streams for the [iptv-org/api](https://github.com/iptv-org/api) repository.
|
||||||
- `api:deploy`: allows to manually upload a JSON file created via `api:generate` to the [iptv-org/api](https://github.com/iptv-org/api) repository. To run the script you must provide your [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) with write access to the repository.
|
- `api:deploy`: allows to manually upload a JSON file created via `api:generate` to the [iptv-org/api](https://github.com/iptv-org/api) repository. To run the script you must provide your [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) with write access to the repository.
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "iptv",
|
"name": "iptv",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"act:check": "act pull_request -W .github/workflows/check.yml --secret-file .secrets",
|
"act:check": "gh act pull_request -W .github/workflows/check.yml",
|
||||||
"act:format": "act workflow_dispatch -W .github/workflows/format.yml --secret-file .secrets",
|
"act:format": "gh act workflow_dispatch -W .github/workflows/format.yml",
|
||||||
"act:update": "act workflow_dispatch -W .github/workflows/update.yml --secret-file .secrets",
|
"act:update": "gh act workflow_dispatch -W .github/workflows/update.yml",
|
||||||
"api:load": "tsx scripts/commands/api/load.ts",
|
"api:load": "tsx scripts/commands/api/load.ts",
|
||||||
"api:generate": "tsx scripts/commands/api/generate.ts",
|
"api:generate": "tsx scripts/commands/api/generate.ts",
|
||||||
"api:deploy": "npx gh-pages-clean && npx gh-pages -a -m \"Deploy to iptv-org/api\" -d .api -r https://$GITHUB_TOKEN@github.com/iptv-org/api.git",
|
"api:deploy": "npx gh-pages-clean && npx gh-pages -a -m \"Deploy to iptv-org/api\" -d .api -r https://$GITHUB_TOKEN@github.com/iptv-org/api.git",
|
||||||
|
|||||||
Reference in New Issue
Block a user