From 5b19d85c1ed214ca8690d02d330202757390d0bd Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Sun, 16 Jun 2024 18:31:00 +0000 Subject: [PATCH] Enhancement (ci): Use docker image for `test-publish-to-psgallery` and `publish-to-psgallery` jobs --- .github/workflows/ci-master-pr.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci-master-pr.yml b/.github/workflows/ci-master-pr.yml index 3f85826..83f681f 100644 --- a/.github/workflows/ci-master-pr.yml +++ b/.github/workflows/ci-master-pr.yml @@ -155,13 +155,24 @@ jobs: test-publish-to-psgallery: runs-on: ubuntu-latest + container: + image: theohbrothers/docker-powershell:7.4-ubuntu-22.04-git steps: - uses: actions/checkout@v1 with: submodules: true + - name: Install wget + run: | + apt-get update && apt-get install -y wget + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: '6' - name: Powershell version run: | pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable' + - name: Ignore git permissions + run: | + git config --global --add safe.directory "$( pwd )" - name: Publish (dry run) shell: pwsh env: @@ -187,13 +198,24 @@ jobs: - test-publish-to-psgallery if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest + container: + image: theohbrothers/docker-powershell:7.4-ubuntu-22.04-git steps: - uses: actions/checkout@v1 with: submodules: true + - name: Install wget + run: | + apt-get update && apt-get install -y wget + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: '6' - name: Powershell version run: | pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable' + - name: Ignore git permissions + run: | + git config --global --add safe.directory "$( pwd )" - name: Publish shell: pwsh env: