mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update _update.yml
This commit is contained in:
parent
892f378459
commit
9b97ba31c7
1 changed files with 7 additions and 8 deletions
15
.github/workflows/_update.yml
vendored
15
.github/workflows/_update.yml
vendored
|
@ -8,22 +8,24 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- run: echo "BRANCH_NAME=$(date +'bot/auto-update-%s')" >> $GITHUB_OUTPUT
|
- run: echo "BRANCH_NAME=$(date +'bot/auto-update-%s')" >> $GITHUB_OUTPUT
|
||||||
id: create-branch-name
|
id: create-branch-name
|
||||||
- run: git config user.name 'iptv-bot[bot]'
|
- run: git config user.name 'iptv-bot[bot]'
|
||||||
- run: git config user.email '84861620+iptv-bot[bot]@users.noreply.github.com'
|
- run: git config user.email '84861620+iptv-bot[bot]@users.noreply.github.com'
|
||||||
- run: git checkout -b ${{ steps.create-branch-name.outputs.BRANCH_NAME }}
|
- run: git checkout -b ${{ steps.create-branch-name.outputs.BRANCH_NAME }}
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
if: ${{ !env.ACT }}
|
|
||||||
with:
|
|
||||||
node-version: 16
|
|
||||||
cache: 'npm'
|
|
||||||
- uses: tibdex/github-app-token@v1
|
- uses: tibdex/github-app-token@v1
|
||||||
if: ${{ !env.ACT }}
|
if: ${{ !env.ACT }}
|
||||||
id: create-app-token
|
id: create-app-token
|
||||||
with:
|
with:
|
||||||
app_id: ${{ secrets.APP_ID }}
|
app_id: ${{ secrets.APP_ID }}
|
||||||
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
if: ${{ !env.ACT }}
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
cache: 'npm'
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run api:load
|
- run: npm run api:load
|
||||||
- if: ${{ !env.ACT }}
|
- if: ${{ !env.ACT }}
|
||||||
|
@ -53,9 +55,6 @@ jobs:
|
||||||
commit-message: '[Bot] Deploy to iptv-org/api'
|
commit-message: '[Bot] Deploy to iptv-org/api'
|
||||||
clean: false
|
clean: false
|
||||||
- run: npm run readme:update
|
- run: npm run readme:update
|
||||||
- run: ls -l
|
|
||||||
- run: git status
|
|
||||||
- run: git branch --show-current
|
|
||||||
- if: ${{ !env.ACT }}
|
- if: ${{ !env.ACT }}
|
||||||
run: |
|
run: |
|
||||||
git add README.md
|
git add README.md
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue