Update auto-update.yml

This commit is contained in:
Aleksandr Statciuk 2021-11-27 01:47:38 +03:00
parent feb575cb35
commit 5f0f8a9427
1 changed files with 7 additions and 3 deletions

View File

@ -6,6 +6,8 @@ on:
jobs: jobs:
create-branch: create-branch:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs:
branch_name: ${{ steps.set-branch-name.outputs.branch_name }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -13,21 +15,23 @@ jobs:
ref: ${{ github.ref }} ref: ${{ github.ref }}
- name: Set Branch Name - name: Set Branch Name
id: set-branch-name id: set-branch-name
run: echo "::set-output name=branch_name::bot/auto-update-$(date +'%Y%m%d')" run: echo "::set-output name=branch_name::bot/auto-update-$(date +'%Y%m%d%H%M%S')"
- name: Create Branch - name: Create Branch
uses: peterjgrainger/action-create-branch@v2.0.1 uses: peterjgrainger/action-create-branch@v2.0.1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
branch: ${{ steps.set-branch-name.outputs.branch_name }} branch: ${{ steps.set-branch-name.outputs.branch_name }}
- name: Exit
run: exit 1
create-matrix: create-matrix:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: create-branch needs: create-branch
outputs: outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }} matrix: ${{ steps.set-matrix.outputs.matrix }}
steps: steps:
- name: Display Branch Name
run: echo ${{ needs.create-branch.outputs.branch_name }}
- name: Exit
run: exit 1
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with: