diff --git a/.github/workflows/run-action.yml b/.github/workflows/run-action.yml index 249945c..07efb75 100644 --- a/.github/workflows/run-action.yml +++ b/.github/workflows/run-action.yml @@ -19,43 +19,45 @@ jobs: user: actions-user - run: bash .github/workflows/display.bash - # case2: - # strategy: - # matrix: - # os: - # - macos-latest - # - ubuntu-latest - # - windows-latest - # runs-on: ${{ matrix.os }} - # steps: - # # https://github.com/actions/checkout - # - uses: actions/checkout@v4 - # with: - # path: myaction - # # https://github.com/actions/checkout - # - uses: actions/checkout@v4 - # with: - # path: target - # - uses: ./myaction/ - # with: - # path: target - # user: github-actions - # - run: bash ../myaction/.github/workflows/display.bash - # working-directory: target + case2: + strategy: + matrix: + os: + - macos-latest + - ubuntu-latest + - windows-latest + runs-on: ${{ matrix.os }} + steps: + # https://github.com/actions/checkout + - uses: actions/checkout@v4 + with: + path: myaction + # https://github.com/actions/checkout + - uses: actions/checkout@v4 + with: + path: target + - uses: ./myaction/ + with: + path: target + user: github-actions + - run: bash ../myaction/.github/workflows/display.bash + working-directory: myaction + - run: bash ../myaction/.github/workflows/display.bash + working-directory: target - # case3: - # strategy: - # matrix: - # os: - # - macos-latest - # - ubuntu-latest - # - windows-latest - # runs-on: ${{ matrix.os }} - # steps: - # # https://github.com/actions/checkout - # - uses: actions/checkout@v4 - # - uses: ./ - # with: - # global: true - # user: latest-commit - # - run: bash .github/workflows/display.bash + case3: + strategy: + matrix: + os: + - macos-latest + - ubuntu-latest + - windows-latest + runs-on: ${{ matrix.os }} + steps: + # https://github.com/actions/checkout + - uses: actions/checkout@v4 + - uses: ./ + with: + global: true + user: latest-commit + - run: bash .github/workflows/display.bash