From ed63f18744912e2f7745682b20bb6abfe1f53eca Mon Sep 17 00:00:00 2001 From: Carlos Pereira Atencio Date: Mon, 29 Jul 2024 18:46:24 +0100 Subject: [PATCH] ci: Update testghpkgs workflow to be able to run it again. --- .github/workflows/testghpkgs.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/testghpkgs.yml b/.github/workflows/testghpkgs.yml index ca4d29f2084..aef4a8b82b4 100644 --- a/.github/workflows/testghpkgs.yml +++ b/.github/workflows/testghpkgs.yml @@ -2,6 +2,11 @@ name: pxt-testghpkgs on: workflow_dispatch: + inputs: + branch-or-commit: + description: Branch or commit to checkout for test + required: false + default: 'master' jobs: build: @@ -10,15 +15,14 @@ jobs: strategy: matrix: - node-version: [8.x] - branch: [stable3.0] + node-version: [16.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: - ref: ${{ matrix.branch }} + ref: ${{ github.event.inputs.branch-or-commit }} - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: npm install @@ -28,7 +32,7 @@ jobs: - name: pxt buildtarget run: pxt buildtarget - name: cache build output - uses: actions/cache@v1 + uses: actions/cache@v4 env: cache-name: cache-testghpkgs with: @@ -43,10 +47,10 @@ jobs: env: PXT_FORCE_GITHUB_PROXY: 1 PXT_ACCESS_TOKEN: ${{ secrets.PXT_ACCESS_TOKEN }} - GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_ACCESS_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: upload build log - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: ${{ always() }} with: - name: logs-${{ matrix.branch }} + name: logs path: temp/ghpkgs/*.txt