From 5f0f8a94275ae09e8dc796586eba3d8ecfdeb41d Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 27 Nov 2021 01:47:38 +0300 Subject: [PATCH] Update auto-update.yml --- .github/workflows/auto-update.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index 7871893a3a..da4a88006a 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -6,6 +6,8 @@ on: jobs: create-branch: runs-on: ubuntu-latest + outputs: + branch_name: ${{ steps.set-branch-name.outputs.branch_name }} steps: - name: Checkout uses: actions/checkout@v2 @@ -13,21 +15,23 @@ jobs: ref: ${{ github.ref }} - name: 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 uses: peterjgrainger/action-create-branch@v2.0.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: branch: ${{ steps.set-branch-name.outputs.branch_name }} - - name: Exit - run: exit 1 create-matrix: runs-on: ubuntu-latest needs: create-branch outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: + - name: Display Branch Name + run: echo ${{ needs.create-branch.outputs.branch_name }} + - name: Exit + run: exit 1 - name: Checkout uses: actions/checkout@v2 with: