From commits-return-8881-archive-asf-public=cust-asf.ponee.io@nuttx.apache.org Tue May 5 07:28:58 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 76A2C180626 for ; Tue, 5 May 2020 09:28:58 +0200 (CEST) Received: (qmail 32066 invoked by uid 500); 5 May 2020 07:28:57 -0000 Mailing-List: contact commits-help@nuttx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nuttx.apache.org Delivered-To: mailing list commits@nuttx.apache.org Received: (qmail 32057 invoked by uid 99); 5 May 2020 07:28:57 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2020 07:28:57 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 85A008BFAB; Tue, 5 May 2020 07:28:57 +0000 (UTC) Date: Tue, 05 May 2020 07:28:57 +0000 To: "commits@nuttx.apache.org" Subject: [incubator-nuttx-apps] branch master updated: Restore Git Credentials on NuttX repo MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <158866373745.3504.16537405064285814425@gitbox.apache.org> From: xiaoxiang@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-nuttx-apps X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: e72608e0d8bb8e21172dec6536c9413c582bf753 X-Git-Newrev: 005ef9299074abe1eecf4f31284f7e81e61d4333 X-Git-Rev: 005ef9299074abe1eecf4f31284f7e81e61d4333 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git The following commit(s) were added to refs/heads/master by this push: new 005ef92 Restore Git Credentials on NuttX repo 005ef92 is described below commit 005ef9299074abe1eecf4f31284f7e81e61d4333 Author: Brennan Ashton AuthorDate: Mon May 4 22:29:47 2020 -0700 Restore Git Credentials on NuttX repo Something change on the GitHub side that has broken credentials between the the fetch and buld workflow steps. There is no way to tell the checkout action to only re-auth so we have it checkout the repo again, but it will use what it already has. In the future we can change fetch step to just compute the target refs and store them in a script that we can call to set the environment variables for the targets much like this patch. Signed-off-by: Brennan Ashton --- .github/workflows/build.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 32bb4e2..1b4ccee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -162,13 +162,23 @@ jobs: retry_wait_seconds: 10 command: docker pull docker.pkg.github.com/apache/incubator-nuttx-testing/nuttx-ci-linux + - name: Export NuttX Repo SHA + run: echo "::set-env name=nuttx_sha::`git -C sources/nuttx rev-parse HEAD`" + - name: Refresh Git Credentials + uses: actions/checkout@v2 + with: + repository: apache/incubator-nuttx + ref: ${{ env.nuttx_sha }} + path: sources/nuttx + fetch-depth: 1 + - name: Get Tags for NuttX Repo + run: git -C sources/nuttx fetch --tags - name: Run builds uses: ./sources/testing/.github/actions/ci-container env: BLOBDIR: /tools/blobs with: run: | - git -C sources/nuttx fetch --tags cd sources/testing ./cibuild.sh -x testlist/${{matrix.boards}}.dat @@ -207,8 +217,18 @@ jobs: path: prebuilt key: ${{ runner.os }}-tools-${{ hashFiles('./sources/testing/cibuild.sh') }} + - name: Export NuttX Repo SHA + run: echo "::set-env name=nuttx_sha::`git -C sources/nuttx rev-parse HEAD`" + - name: Refresh Git Credentials + uses: actions/checkout@v2 + with: + repository: apache/incubator-nuttx + ref: ${{ env.nuttx_sha }} + path: sources/nuttx + fetch-depth: 1 + - name: Get Tags for NuttX Repo + run: git -C sources/nuttx fetch --tags - name: Run Builds run: | - git -C sources/nuttx fetch --tags cd sources/testing ./cibuild.sh -i -x testlist/${{matrix.boards}}.dat