update version to 1.0.1 #30
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
name: .NET Continue Integration | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
Continue-Integration: | |
runs-on: ubuntu-latest | |
environment: Release | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Update JSON File | |
run: | | |
# Get the new values from the previous step's outputs | |
clientid="${{ secrets.CLIENTID }}" | |
clientsecretid="${{ secrets.CLIENTSECRETID }}" | |
accesstoken="${{ secrets.ACCESSTOKEN }}" | |
refreshtoken="${{ secrets.CLIENTSECRETID }}" | |
appname="${{ secrets.APPNAME }}" | |
accountid="${{ secrets.ACCOUNTID }}" | |
projectid="${{ secrets.PROJECTID }}" | |
messageboardid="${{ secrets.MESSAGEBOARDID }}" | |
todosetsid="${{ secrets.TODOSETSID }}" | |
vaultid="${{ secrets.VAULTID }}" | |
campfireid="${{ secrets.CAMPFIREID }}" | |
scheduleid="${{ secrets.SCHEDULEID }}" | |
questionnaireid="${{ secrets.QUESTIONNAIREID }}" | |
inboxid="${{ secrets.INBOXID }}" | |
kanbanid="${{ secrets.KANBANID }}" | |
todolistsid="${{ secrets.KANBANID }}" | |
# Update the JSON file using jq | |
jq --arg clientid "$clientid" --arg clientsecretid "$clientsecretid" --arg appname "$appname" '.ClientId = $clientid | .ClientSecretId = $clientsecretid | .AppName = $appname' tests/appsettings.json > updated_appsettings.json | |
mv updated_appsettings.json tests/appsettings.json | |
jq --arg accountid "$accountid" --arg projectid "$projectid" --arg messageboardid "$messageboardid" '.AccountId = $accountid | .ProjectId = $projectid | .MessageBoardId = $messageboardid' tests/appsettings.json > updated_appsettings2.json | |
mv updated_appsettings2.json tests/appsettings.json | |
jq --arg todosetsid "$todosetsid" --arg vaultid "$vaultid" --arg campfireid "$campfireid" '.TodosetsId = $todosetsid | .VaultId = $vaultid | .CampfireId = $campfireid' tests/appsettings.json > updated_appsettings3.json | |
mv updated_appsettings3.json tests/appsettings.json | |
jq --arg scheduleid "$scheduleid" --arg questionnaireid "$questionnaireid" '.ScheduleId = $scheduleid | .QuestionnaireId = $questionnaireid' tests/appsettings.json > updated_appsettings4.json | |
mv updated_appsettings4.json tests/appsettings.json | |
jq --arg inboxid "$inboxid" --arg kanbanid "$kanbanid" --arg todolistsid "$todolistsid" '.InboxId = $inboxid | .KanbanId = $kanbanid | .TodolistsId = $todolistsid' tests/appsettings.json > updated_appsettings5.json | |
mv updated_appsettings5.json tests/appsettings.json | |
# Update the JSON file using jq | |
jq --arg accesstoken "$accesstoken" --arg refreshtoken "$refreshtoken" --arg refreshtoken "$refreshtoken" '.access_token = $accesstoken | .refresh_token = $refreshtoken' tests/basecamp.json > updated_basecamp.json | |
mv updated_basecamp.json tests/basecamp.json | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Build and Test | |
run: ./build.ps1 | |
shell: pwsh |