mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Update check.yml
This commit is contained in:
10
.github/workflows/check.yml
vendored
10
.github/workflows/check.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
git fetch origin master:master
|
git fetch origin master:master
|
||||||
ANY_CHANGED=false
|
ANY_CHANGED=false
|
||||||
JS_ANY_CHANGED=false
|
JS_ANY_CHANGED=false
|
||||||
JS_ALL_CHANGED_FILES=$(git diff --name-only master -- tests/**/*.js tests/**/*.ts scripts/**/*.js scripts/**/*.mts scripts/**/*.ts sites/**/*.js sites/**/*.ts | tr '\n' ' ')
|
JS_ALL_CHANGED_FILES=$(git diff --diff-filter=ACMRT --name-only master -- tests/**/*.js tests/**/*.ts scripts/**/*.js scripts/**/*.mts scripts/**/*.ts sites/**/*.js sites/**/*.ts | tr '\n' ' ')
|
||||||
if [ -n "${JS_ALL_CHANGED_FILES}" ]; then
|
if [ -n "${JS_ALL_CHANGED_FILES}" ]; then
|
||||||
JS_ANY_CHANGED=true
|
JS_ANY_CHANGED=true
|
||||||
ANY_CHANGED=true
|
ANY_CHANGED=true
|
||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
echo "js_all_changed_files=$JS_ALL_CHANGED_FILES" >> "$GITHUB_OUTPUT"
|
echo "js_all_changed_files=$JS_ALL_CHANGED_FILES" >> "$GITHUB_OUTPUT"
|
||||||
echo "js_any_changed=$JS_ANY_CHANGED" >> "$GITHUB_OUTPUT"
|
echo "js_any_changed=$JS_ANY_CHANGED" >> "$GITHUB_OUTPUT"
|
||||||
CHANNELS_ANY_CHANGED=false
|
CHANNELS_ANY_CHANGED=false
|
||||||
CHANNELS_ALL_CHANGED_FILES=$(git diff --name-only master -- sites/**/*.channels.xml | tr '\n' ' ')
|
CHANNELS_ALL_CHANGED_FILES=$(git diff --diff-filter=ACMRT --name-only master -- sites/**/*.channels.xml | tr '\n' ' ')
|
||||||
if [ -n "${CHANNELS_ALL_CHANGED_FILES}" ]; then
|
if [ -n "${CHANNELS_ALL_CHANGED_FILES}" ]; then
|
||||||
CHANNELS_ANY_CHANGED=true
|
CHANNELS_ANY_CHANGED=true
|
||||||
ANY_CHANGED=true
|
ANY_CHANGED=true
|
||||||
@@ -42,12 +42,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: SKIP_POSTINSTALL=1 npm install
|
run: SKIP_POSTINSTALL=1 npm install
|
||||||
|
|||||||
Reference in New Issue
Block a user