feat: forgejo action #1
1 changed files with 4 additions and 1 deletions
|
@ -57,10 +57,13 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 2 # Necessário para acessar o commit anterior
|
||||
- name: Instalando Dependencias
|
||||
run: |
|
||||
apk add git jq
|
||||
ls -lha
|
||||
- name: Verificar mudança de versão no package.json
|
||||
id: check
|
||||
run: |
|
||||
apk add git jq
|
||||
OLD_VERSION=$(git show HEAD^:package.json | jq -r '.version')
|
||||
NEW_VERSION=$(jq -r '.version' package.json)
|
||||
echo "Versão anterior: $OLD_VERSION"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue