-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 13955-replace-altinncontentloader-with-studi…
…ospinner
- Loading branch information
Showing
87 changed files
with
1,403 additions
and
618 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -u | ||
|
||
DRAFT=true | ||
|
||
while [[ $# -gt 0 ]]; do | ||
case $1 in | ||
--github-token) | ||
GITHUB_TOKEN="$2" | ||
shift # pop option | ||
shift # pop value | ||
;; | ||
--draft) | ||
DRAFT="$2" | ||
shift # pop option | ||
shift # pop value | ||
;; | ||
-*|--*) | ||
echo "Unknown option $1" | ||
exit 1 | ||
;; | ||
*) | ||
echo "Unknown argument $1" | ||
exit 1 | ||
;; | ||
esac | ||
done | ||
|
||
CURRENT_VERSION=$(git describe --abbrev=0 --tags 2>/dev/null) | ||
CURRENT_VERSION_PARTS=(${CURRENT_VERSION//./ }) | ||
FIRST_PART=${CURRENT_VERSION_PARTS[0]:1} | ||
SECOND_PART=${CURRENT_VERSION_PARTS[1]} | ||
YEAR="$(date +"%Y")" | ||
|
||
echo "Current git tag: $CURRENT_VERSION" | ||
echo "First part: $FIRST_PART" | ||
echo "Second part: $SECOND_PART" | ||
echo "Current year: $YEAR" | ||
echo "-------------------------------------" | ||
|
||
|
||
# Ensure that the version starts from 0 when the year changes | ||
if [[ "$YEAR" == "$FIRST_PART" ]]; then | ||
# Increment the second part of the version by 1 | ||
NEW_VERSION="v${YEAR}.$(($SECOND_PART+1))" | ||
else | ||
# New year - start from 0 | ||
NEW_VERSION="v${YEAR}.0" | ||
fi | ||
|
||
echo "New git tag: $NEW_VERSION" | ||
echo "Draft: $DRAFT" | ||
|
||
# Create the release | ||
curl -L \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${GITHUB_TOKEN}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/altinn/altinn-studio/releases \ | ||
-d "{\"tag_name\":\"$NEW_VERSION\",\"name\":\"$NEW_VERSION\",\"draft\":$DRAFT,\"prerelease\":false,\"generate_release_notes\":true}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Generate release for Altinn Studio | ||
on: | ||
schedule: | ||
# run every friday at 14:45 | ||
- cron: '45 14 * * 5' | ||
|
||
workflow_dispatch: | ||
inputs: | ||
draft: | ||
description: 'Create a draft release' | ||
required: true | ||
default: true | ||
type: boolean | ||
|
||
jobs: | ||
generate-release: | ||
name: Run release script | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
path: altinn-studio | ||
fetch-tags: true | ||
fetch-depth: 0 | ||
|
||
- name: Run release script | ||
working-directory: altinn-studio | ||
run: | | ||
bash .github/scripts/release.sh \ | ||
--github-token ${{ secrets.GITHUB_TOKEN }} \ | ||
--draft ${{ github.event.inputs.draft || false }} # cron job will always be a full release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
backend/src/Designer/Configuration/UserRequestSynchronizationSettings.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.