ci: install Git in package publisher
This commit is contained in:
@@ -15,6 +15,16 @@ jobs:
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.SHRINKSDK_PACKAGE_TOKEN }}
|
||||
steps:
|
||||
- name: Install Git
|
||||
shell: bash
|
||||
run: |
|
||||
set -eu
|
||||
if ! command -v git >/dev/null 2>&1; then
|
||||
apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git ca-certificates
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
fi
|
||||
|
||||
- name: Fetch tagged revision
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -23,7 +33,7 @@ jobs:
|
||||
test -n "$ref"
|
||||
git init .
|
||||
git remote add origin "https://git.crash.work/ShrinkSDK/ShrinkNetwork.Integration.App.git"
|
||||
git fetch --depth=1 origin "$ref"
|
||||
git fetch --depth=1 --tags origin "$ref"
|
||||
git checkout --detach FETCH_HEAD
|
||||
|
||||
- name: Validate immutable release version
|
||||
|
||||
Reference in New Issue
Block a user