Skip to content

Commit

Permalink
chore: use github api to fetch current tag (#14022)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkylstad authored Nov 8, 2024
1 parent 360b0b8 commit 1031fab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ while [[ $# -gt 0 ]]; do
esac
done

CURRENT_VERSION=$(git describe --abbrev=0 --tags 2>/dev/null)
CURRENT_VERSION=$(curl -s https://api.github.com/repos/Altinn/altinn-studio/releases/latest | jq -r .tag_name)
CURRENT_VERSION_PARTS=(${CURRENT_VERSION//./ })
FIRST_PART=${CURRENT_VERSION_PARTS[0]:1}
SECOND_PART=${CURRENT_VERSION_PARTS[1]}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Generate release for Altinn Studio
on:
schedule:
# run every friday at 14:45
- cron: '45 14 * * 5'
# run every friday at 14:15 UTC (15:15 Oslo time)
- cron: '15 14 * * 5'

workflow_dispatch:
inputs:
Expand Down

0 comments on commit 1031fab

Please sign in to comment.