Update _update.yml

This commit is contained in:
Aleksandr Statciuk
2022-10-26 21:53:36 +03:00
parent 01d3501404
commit 4fafedf1f0

View File

@@ -29,20 +29,7 @@ jobs:
- if: ${{ !env.ACT }} - if: ${{ !env.ACT }}
run: GITHUB_TOKEN=${{ steps.create-app-token.outputs.token }} npm run programs:load run: GITHUB_TOKEN=${{ steps.create-app-token.outputs.token }} npm run programs:load
- run: npm run guides:update - run: npm run guides:update
- run: npm run api:update - uses: JamesIves/github-pages-deploy-action@v4.4.1
- run: npm run readme:update
- run: npm run status:update
- name: Commit Changes
if: ${{ !env.ACT }}
run: |
git add README.md
git commit -m "[Bot] Update README.md"
git add STATUS.md
git commit -m "[Bot] Update STATUS.md"
git status
git push -u origin ${{ steps.create-branch-name.outputs.BRANCH_NAME }}
- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@v4.4.1
if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} if: ${{ !env.ACT && github.ref == 'refs/heads/master' }}
with: with:
branch: gh-pages branch: gh-pages
@@ -53,8 +40,8 @@ jobs:
commit-message: '[Bot] Update guides' commit-message: '[Bot] Update guides'
clean: false clean: false
force: false force: false
- name: Deploy to iptv-org/api - run: npm run api:update
uses: JamesIves/github-pages-deploy-action@v4.4.1 - uses: JamesIves/github-pages-deploy-action@v4.4.1
if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} if: ${{ !env.ACT && github.ref == 'refs/heads/master' }}
with: with:
repository-name: iptv-org/api repository-name: iptv-org/api
@@ -65,6 +52,20 @@ jobs:
git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com
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
- if: ${{ !env.ACT }}
run: |
git add README.md
git commit -m "[Bot] Update README.md"
git status
git push -u origin ${{ steps.create-branch-name.outputs.BRANCH_NAME }}
- run: npm run status:update
- if: ${{ !env.ACT }}
run: |
git add STATUS.md
git commit -m "[Bot] Update STATUS.md"
git status
git push -u origin ${{ steps.create-branch-name.outputs.BRANCH_NAME }}
- uses: repo-sync/pull-request@v2 - uses: repo-sync/pull-request@v2
if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} if: ${{ !env.ACT && github.ref == 'refs/heads/master' }}
id: pull-request id: pull-request