From 6b546cefc0c68d033daab25aaf770a3d391ac141 Mon Sep 17 00:00:00 2001 From: NSMBot Date: Mon, 8 Nov 2021 05:57:31 +0000 Subject: [PATCH] Sync files with networkservicemesh/cmd-template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR syncs files with https://github.com/networkservicemesh/cmd-template Revision: https://github.com/networkservicemesh/cmd-template/commits/6a1b0df8d297768620866e621a8474151113bab9 commit 6a1b0df8d297768620866e621a8474151113bab9 Author: Авраменко Михаил Date: Mon Nov 8 12:56:13 2021 +0700 added missed find-pr job (#80) Signed-off-by: Mikhail Avramenko Signed-off-by: NSMBot --- .github/workflows/update-deployments.yaml | 24 ++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update-deployments.yaml b/.github/workflows/update-deployments.yaml index 51aba33..05fe3d4 100644 --- a/.github/workflows/update-deployments.yaml +++ b/.github/workflows/update-deployments.yaml @@ -21,16 +21,12 @@ jobs: path: ${{ github.repository }} repository: ${{ github.repository }} token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} - - uses: benjlevesque/short-sha@v1.2 - id: short-sha - with: - length: 7 - - name: Checkout networkservicemesh/deployments-k8s - uses: actions/checkout@v2 + - name: Find merged PR + uses: jwalton/gh-find-current-pr@v1.0.2 + id: findPr with: - path: networkservicemesh/deployments-k8s - repository: networkservicemesh/deployments-k8s - token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} + sha: ${{ github.sha }} + github-token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} - name: Create commit message working-directory: ${{ github.repository }} run: | @@ -42,6 +38,16 @@ jobs: echo "$LOG_MSG" >> /tmp/commit-message echo "Commit Message:" cat /tmp/commit-message + - uses: benjlevesque/short-sha@v1.2 + id: short-sha + with: + length: 7 + - name: Checkout networkservicemesh/deployments-k8s + uses: actions/checkout@v2 + with: + path: networkservicemesh/deployments-k8s + repository: networkservicemesh/deployments-k8s + token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} - name: Find and Replace version uses: jacobtomlinson/gha-find-replace@master with: