Skip to content

Commit

Permalink
Update info.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Xikaro committed Nov 13, 2024
1 parent 02da1f3 commit f7bcf95
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ jobs:
id: get_latest_tag
shell: bash
run: |
latest_tag=$(git describe --tags --abbrev=0)
if [ -z "$latest_tag" ]; then
tag=$(git describe --tags --abbrev=0)
if [ -z "$tag" ]; then
echo "❌ Latest tag not found" && exit 1
else
echo "✔️ Latest tag found: $latest_tag"
echo "latest_tag=$latest_tag" >> $GITHUB_OUTPUT
echo "✔️ Latest tag found: $tag"
echo "tag=$tag" >> $GITHUB_OUTPUT
fi
- name: 🔍 Check pakku-lock.json in previous tag
id: check_pakku_lock_prev
shell: bash
run: |
if ! git ls-tree -r ${{ steps.get_latest_tag.outputs.value }} -- ./pakku-lock.json &> /dev/null; then
if ! git ls-tree -r ${{ steps.get_latest_tag.outputs.tag }} -- ./pakku-lock.json &> /dev/null; then
echo "❌ File pakku-lock.json not found in previous tag" && exit 1
else
echo "✔️ File pakku-lock.json found in previous tag"
Expand All @@ -80,7 +80,7 @@ jobs:
id: copy_pakku_lock_prev
shell: bash
run: |
git show tags/${{ steps.get_latest_tag.outputs.value }}:./pakku-lock.json > ./pakku-lock-prev.json
git show tags/${{ steps.get_latest_tag.outputs.tag }}:./pakku-lock.json > ./pakku-lock-prev.json
if [ -s ./pakku-lock-prev.json ]; then
echo "✔️ File pakku-lock-prev.json created"
else
Expand Down

0 comments on commit f7bcf95

Please sign in to comment.