mirror of
https://github.com/iptv-org/iptv
synced 2025-12-15 09:56:52 -05:00
Update workflows
This commit is contained in:
10
.github/workflows/check.yml
vendored
10
.github/workflows/check.yml
vendored
@@ -6,8 +6,6 @@ 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
|
||||||
@@ -18,7 +16,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git fetch origin master:master
|
git fetch origin master:master
|
||||||
ANY_CHANGED=false
|
ANY_CHANGED=false
|
||||||
ALL_CHANGED_FILES=$(git diff --name-only master -- streams/ | tr '\n' ' ')
|
ALL_CHANGED_FILES=$(git diff --diff-filter=ACMRT --name-only master -- streams/ | tr '\n' ' ')
|
||||||
if [ -n "${ALL_CHANGED_FILES}" ]; then
|
if [ -n "${ALL_CHANGED_FILES}" ]; then
|
||||||
ANY_CHANGED=true
|
ANY_CHANGED=true
|
||||||
fi
|
fi
|
||||||
@@ -29,12 +27,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- name: Setup .npmrc for GitHub Packages
|
|
||||||
if: steps.files.outputs.any_changed == 'true'
|
|
||||||
run: |
|
|
||||||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
|
|
||||||
echo "@iptv-org:registry=https://npm.pkg.github.com/" >> .npmrc
|
|
||||||
echo "always-auth=true" >> .npmrc
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.files.outputs.any_changed == 'true'
|
if: steps.files.outputs.any_changed == 'true'
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|||||||
9
.github/workflows/format.yml
vendored
9
.github/workflows/format.yml
vendored
@@ -3,8 +3,6 @@ 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,11 +22,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- name: Setup .npmrc for GitHub Packages
|
|
||||||
run: |
|
|
||||||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
|
|
||||||
echo "@iptv-org:registry=https://npm.pkg.github.com/" >> .npmrc
|
|
||||||
echo "always-auth=true" >> .npmrc
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Format internal playlists
|
- name: Format internal playlists
|
||||||
@@ -41,7 +34,7 @@ jobs:
|
|||||||
id: files_after
|
id: files_after
|
||||||
run: |
|
run: |
|
||||||
ANY_CHANGED=false
|
ANY_CHANGED=false
|
||||||
ALL_CHANGED_FILES=$(git diff --name-only master -- streams/ | tr '\n' ' ')
|
ALL_CHANGED_FILES=$(git diff --diff-filter=ACMRT --name-only master -- streams/ | tr '\n' ' ')
|
||||||
if [ -n "${ALL_CHANGED_FILES}" ]; then
|
if [ -n "${ALL_CHANGED_FILES}" ]; then
|
||||||
ANY_CHANGED=true
|
ANY_CHANGED=true
|
||||||
fi
|
fi
|
||||||
|
|||||||
11
.github/workflows/update.yml
vendored
11
.github/workflows/update.yml
vendored
@@ -3,8 +3,6 @@ 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,11 +22,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- name: Setup .npmrc for GitHub Packages
|
|
||||||
run: |
|
|
||||||
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
|
|
||||||
echo "@iptv-org:registry=https://npm.pkg.github.com/" >> .npmrc
|
|
||||||
echo "always-auth=true" >> .npmrc
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Update internal playlists
|
- name: Update internal playlists
|
||||||
@@ -40,8 +33,8 @@ jobs:
|
|||||||
npm run playlist:validate
|
npm run playlist:validate
|
||||||
- name: Generate public playlists
|
- name: Generate public playlists
|
||||||
run: npm run playlist:generate
|
run: npm run playlist:generate
|
||||||
- name: Generate .api/streams.json
|
- name: Create .api/streams.json
|
||||||
run: npm run api:generate
|
run: npm run playlist:export
|
||||||
- name: Update readme
|
- name: Update readme
|
||||||
run: npm run readme:update
|
run: npm run readme:update
|
||||||
- name: Setup git
|
- name: Setup git
|
||||||
|
|||||||
Reference in New Issue
Block a user