Update _update-readme.yml

This commit is contained in:
Aleksandr Statciuk 2022-10-19 23:38:20 +03:00
parent 1550d10fb8
commit 2d8e587f6e

View file

@ -8,11 +8,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
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 - uses: actions/setup-node@v3
if: ${{ !env.ACT }} if: ${{ !env.ACT }}
with: with:
@ -27,7 +27,7 @@ jobs:
git add README.md git add README.md
git commit -m "[Bot] Update README.md" git commit -m "[Bot] Update README.md"
git status git status
git push -u origin ${{ steps.create-branch-name.outputs.branch_name }} git push -u origin ${{ steps.create-branch-name.outputs.BRANCH_NAME }}
- 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
@ -39,7 +39,7 @@ jobs:
id: pull-request id: pull-request
with: with:
github_token: ${{ steps.create-app-token.outputs.token }} github_token: ${{ steps.create-app-token.outputs.token }}
source_branch: ${{ steps.create-branch-name.outputs.branch_name }} source_branch: ${{ steps.create-branch-name.outputs.BRANCH_NAME }}
destination_branch: 'master' destination_branch: 'master'
pr_title: '[Bot] Update README.md' pr_title: '[Bot] Update README.md'
pr_body: | pr_body: |