From ef95624d074c36981bd257ee91f4be463dd97b23 Mon Sep 17 00:00:00 2001 From: John Wesley Walker III <81404201+jww3@users.noreply.github.com> Date: Mon, 29 Apr 2024 13:29:54 +0200 Subject: [PATCH] Create git-version-check.yml --- .github/workflows/git-version-check.yml | 50 +++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/git-version-check.yml diff --git a/.github/workflows/git-version-check.yml b/.github/workflows/git-version-check.yml new file mode 100644 index 0000000..2fd410f --- /dev/null +++ b/.github/workflows/git-version-check.yml @@ -0,0 +1,50 @@ +name: "Git Version Check" + +on: + workflow_dispatch: + +jobs: + test1: + name: "Check Git Version on ubuntu-latest" + runs-on: ubuntu-latest + steps: + # - uses: actions/checkout@v4.1.4 + # with: + # sparse-checkout-cone-mode: true + # fetch-depth: 1 + # fetch-tags: false + - name: "Print git --version" + run: git --version + # - name: "Print .git/config" + # run: cat .git/config + # - name: "dotnet build" + # run: dotnet build + test2: + name: "Check Git Version on actions/runner:2.316.0" + runs-on: ubuntu-latest + container: + image: ghcr.io/actions/actions-runner:2.316.0 + options: --user 0 + steps: + # - name: "Update git" + # run: | + # apt-get update + # apt-get install git -y + # apt-get install curl -y + # - uses: actions/checkout@v4.1.4 + # with: + # sparse-checkout-cone-mode: true + # fetch-depth: 1 + # fetch-tags: false + - name: "Print git --version" + run: | + which git + git --version || true + # - name: "Print .git/config" + # run: cat .git/config + # - uses: actions/setup-dotnet@v4 + # with: + # dotnet-version: '8.0.204' + # - name: "dotnet build" + # run: dotnet build +