fix artifactServerPath and artifactServerAddr config for exec #221

Merged
wolfogre merged 2 commits from a1012112796/act_runner:zzc/dev/cmd_exec into main 2023-06-05 08:51:46 +00:00
Member

fix exec logic to make actions/download-artifact and actions/upload-artifact can be used.

example result:

name: test-artifact
on:
  - push
  - pull_request

jobs:
  test-artifact-1:
    name: test 1
    runs-on: ubuntu-latest
    steps:
      - run: echo `date` | tee time.txt
      - name: cache build result
        uses: actions/upload-artifact@v3
        with:
          name: build-artifact
          path: time.txt
          retention-days: 1

  test-artifact-2:
    name: test 2
    needs: test-artifact-1
    runs-on: ubuntu-latest
    steps:
      - name: Retrieve saved build result
        uses: actions/download-artifact@v3
        with:
          name: build-artifact
          path: .
      - run: ls -lh
      - run: cat time.txt

image

fix exec logic to make `actions/download-artifact` and `actions/upload-artifact` can be used. example result: ```YML name: test-artifact on: - push - pull_request jobs: test-artifact-1: name: test 1 runs-on: ubuntu-latest steps: - run: echo `date` | tee time.txt - name: cache build result uses: actions/upload-artifact@v3 with: name: build-artifact path: time.txt retention-days: 1 test-artifact-2: name: test 2 needs: test-artifact-1 runs-on: ubuntu-latest steps: - name: Retrieve saved build result uses: actions/download-artifact@v3 with: name: build-artifact path: . - run: ls -lh - run: cat time.txt ``` ![image](/attachments/5cad3b4a-930a-4d42-a1ae-45ac32e6bfc2)
530 KiB
a1012112796 added 1 commit 2023-05-30 16:14:04 +00:00
fix artifactServerPath and artifactServerAddr config for exec
fix exec logic to
make `actions/download-artifact` and `actions/upload-artifact`
can be used by exec cmd

Signed-off-by: a1012112796 <1012112796@qq.com>
All checks were successful
checks / check and test (pull_request) Successful in 55s
5472d1d85a
lunny approved these changes 2023-05-31 01:47:18 +00:00
a1012112796 added the
kind
bug
label 2023-06-05 00:21:46 +00:00
wolfogre added 1 commit 2023-06-05 08:48:42 +00:00
Merge branch 'main' into zzc/dev/cmd_exec
All checks were successful
checks / check and test (pull_request) Successful in 2m12s
2b639b1b75
wolfogre merged commit 01ef57c667 into main 2023-06-05 08:51:46 +00:00
a1012112796 deleted branch zzc/dev/cmd_exec 2023-06-07 07:55:43 +00:00
Sign in to join this conversation.
No description provided.