nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #229: Restore Git Credentials on NuttX repo
Date Tue, 05 May 2020 07:37:09 GMT

xiaoxiang781216 commented on a change in pull request #229:
URL: https://github.com/apache/incubator-nuttx-apps/pull/229#discussion_r419917272



##########
File path: .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

Review comment:
       Just saw this from https://github.com/actions/checkout:
   ## Fetch all tags
   
   ```yaml
   - uses: actions/checkout@v2
   - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
   ```
   
   ## Fetch all branches
   
   ```yaml
   - uses: actions/checkout@v2
   - run: |
       git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
   ```
   
   ## Fetch all history for all tags and branches
   
   ```yaml
   - uses: actions/checkout@v2
   - run: |
       git fetch --prune --unshallow
   ```
   Can we use them to fix the problem without dropping the speed.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message