xiaoxiang781216 commented on a change in pull request #230: URL: https://github.com/apache/incubator-nuttx-apps/pull/230#discussion_r420314197
########## File path: .github/workflows/build.yml ########## @@ -74,51 +79,18 @@ jobs: esac fi - echo ::set-output name=os_ref::$OS_REF - echo ::set-output name=apps_ref::$APPS_REF - echo ::set-output name=testing_ref::$TESTING_REF - - - name: Checkout nuttx repo - uses: actions/checkout@v2 - with: - repository: apache/incubator-nuttx - ref: ${{ steps.gittargets.outputs.os_ref }} - path: sources/nuttx - fetch-depth: 1 - - - name: Checkout apps repo - uses: actions/checkout@v2 - with: - repository: apache/incubator-nuttx-apps - ref: ${{ steps.gittargets.outputs.apps_ref }} - path: sources/apps - fetch-depth: 1 - - - name: Checkout testing repo - uses: actions/checkout@v2 - with: - repository: apache/incubator-nuttx-testing - ref: ${{ steps.gittargets.outputs.testing_ref }} - path: sources/testing - fetch-depth: 1 - - - name: Create Source Bundle - run: tar -czf sources.tar.gz sources - - name: Archive Source Bundle - uses: actions/upload-artifact@v1 - with: - name: source-bundle - path: sources.tar.gz - - - name: Cache Source - id: cache-source - uses: actions/cache@v1 + echo "#!/bin/sh" > gitenv.sh + echo "echo ::set-env name=os_ref::$OS_REF" >> gitenv.sh + echo "echo ::set-env name=apps_ref::$APPS_REF" >> gitenv.sh + echo "echo ::set-env name=testing_ref::$TESTING_REF" >> gitenv.sh + - name: Upload gitrefs + uses: actions/upload-artifact@v2 with: - path: sources - key: build-sources-${{ github.run_id }} + name: gitrefs + path: gitenv.sh Review comment: After some thought, env.sh may a better name because we may add new variable not related to git in the furture. ---------------------------------------------------------------- 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: us...@infra.apache.org