Skip to content

Commit 101dbf1

Browse files
Merge pull request #4 from 345paul/feat/update-refs
Updated CI workflow and updated nuget references
2 parents 854ece6 + bdcd6cd commit 101dbf1

File tree

15 files changed

+21
-49
lines changed

15 files changed

+21
-49
lines changed

.github/workflows/ci-build.yml

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,14 @@ on:
1313
branches:
1414
- 'main'
1515
release:
16-
types: [created]
17-
schedule:
18-
- cron: '0 3 * * 3'
16+
types: [published]
1917

2018
env:
2119
BUILD_TYPE: 'Release'
2220
DOTNET_VERSION: '3.1.200'
2321
CHOCO_BIZTALK_MIGRATOR_PACKAGE: '..\..\build\chocolatey\biztalkmigrator\biztalkmigrator.nuspec'
2422
CHOCO_CONFIG_DIR: 'build/chocolatey'
2523
CHOCO_PACKAGE_OUTPUT_DIR: 'choco-package'
26-
CHOCO_PACKAGE_REPO_INTERNAL: 'https://push.chocolatey.org/'
2724
CHOCO_PACKAGE_REPO_PUBLIC: 'https://push.chocolatey.org/'
2825
CHOCO_PACKAGE_REPO_FOLDER: 'chocolatey-packages'
2926
CHOCO_SRC_DIR: 'choco-src'
@@ -53,8 +50,8 @@ jobs:
5350
if: github.event_name == 'push' || github.event_name == 'pull_request'
5451
uses: actions/checkout@v2
5552

56-
- name: Checkout from main branch
57-
if: github.event_name == 'schedule'
53+
- name: Checkout from main branch
54+
if: github.event_name == 'release'
5855
uses: actions/checkout@v2
5956
with:
6057
ref: main
@@ -66,7 +63,7 @@ jobs:
6663

6764
# Note: 2 version numbers are created, semantic versioning 1 for Chocolatey and semantic versioning 2 for NuGet.
6865
- name: Set the version number suffix
69-
if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule'
66+
if: github.event_name == 'push' || github.event_name == 'pull_request'
7067
shell: bash
7168
run: |
7269
seconds_at_midnight=$(date --utc -d 'today 00:00:00' +"%s")
@@ -85,12 +82,6 @@ jobs:
8582
- name: Update the nuget config with the credentials for the GitHub Package Repository
8683
run: dotnet nuget update source ${{ env.NUGET_SOURCE_NAME }} --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }}
8784

88-
- name: Update the Chocolatey dependencies for scheduled builds
89-
if: github.event_name == 'schedule'
90-
shell: powershell
91-
run: |
92-
.\build\scripts\Update-ChocolateyPackageVersionNumbers.ps1 -nuspecFileName "${{ env.CHOCO_BIZTALK_MIGRATOR_PACKAGE }}" -chocoSource ${{ secrets.AIM_CHOCO_PUBLIC_REPO_PRE_AUTHENTICATED_URL }}
93-
9485
- name: Restore project dependencies
9586
run: dotnet restore
9687

@@ -144,28 +135,9 @@ jobs:
144135
choco pack $f --version=${{ env.VERSION_NUMBER_SEM1 }} --outputdirectory ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_PACKAGE_OUTPUT_DIR }}
145136
done
146137
147-
- name: Push the Chocolatey package to the internal repo
138+
- name: Push the Chocolatey package to the public repo
148139
if: github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
149140
shell: bash
150-
run: |
151-
find ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_PACKAGE_OUTPUT_DIR }}/ -name "*.nupkg" |
152-
while read f; do
153-
retryCount=0
154-
while true; do
155-
choco push $f -s ${{ env.CHOCO_PACKAGE_REPO_INTERNAL }} -k ${{ secrets.AIM_CHOCO_INTERNAL_REPO_TOKEN }} && break
156-
retryCount=$((retryCount+1))
157-
if (( "$retryCount" <= ${{ env.SCRIPT_MAX_RETRIES }} )); then
158-
echo "Retrying the processing of $f"
159-
sleep ${{ env.SCRIPT_RETRY_SLEEP_IN_SECONDS }}
160-
else
161-
break
162-
fi
163-
done
164-
done
165-
166-
- name: Push the Chocolatey package to the publicly shared repo
167-
if: github.event_name == 'schedule'
168-
shell: bash
169141
run: |
170142
find ./${{ env.OUTPUT_DIR }}/${{ env.CHOCO_PACKAGE_OUTPUT_DIR }}/ -name "*.nupkg" |
171143
while read f; do
@@ -174,7 +146,7 @@ jobs:
174146
choco push $f -s ${{ env.CHOCO_PACKAGE_REPO_PUBLIC }} -k ${{ secrets.AIM_CHOCO_PUBLIC_REPO_TOKEN }} && break
175147
retryCount=$((retryCount+1))
176148
if (( "$retryCount" <= ${{ env.SCRIPT_MAX_RETRIES }} )); then
177-
echo "Retrying the processing of $f"
149+
echo "Retrying the processing of $f"
178150
sleep ${{ env.SCRIPT_RETRY_SLEEP_IN_SECONDS }}
179151
else
180152
break

src/Microsoft.AzureIntegrationMigration.BizTalk.Analyze/Microsoft.AzureIntegrationMigration.BizTalk.Analyze.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</ItemGroup>
3535

3636
<ItemGroup>
37-
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.3.0-alpha.2020100157976" />
37+
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.5.0" />
3838
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="3.6.0-beta1-20111-10">
3939
<PrivateAssets>all</PrivateAssets>
4040
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

src/Microsoft.AzureIntegrationMigration.BizTalk.Convert/Microsoft.AzureIntegrationMigration.BizTalk.Convert.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</ItemGroup>
3434

3535
<ItemGroup>
36-
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.3.0-alpha.2020100157976" />
36+
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.5.0" />
3737
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="3.6.0-beta1-20111-10">
3838
<PrivateAssets>all</PrivateAssets>
3939
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

src/Microsoft.AzureIntegrationMigration.BizTalk.Discover/Microsoft.AzureIntegrationMigration.BizTalk.Discover.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</ItemGroup>
3737

3838
<ItemGroup>
39-
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.3.0-alpha.2020100157976" />
39+
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.5.0" />
4040
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="3.6.0-beta1-20111-10">
4141
<PrivateAssets>all</PrivateAssets>
4242
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

src/Microsoft.AzureIntegrationMigration.BizTalk.Parse/Microsoft.AzureIntegrationMigration.BizTalk.Parse.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</PropertyGroup>
2626

2727
<ItemGroup>
28-
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.3.0-alpha.2020100157976" />
28+
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.5.0" />
2929
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="3.6.0-beta1-20111-10">
3030
<PrivateAssets>all</PrivateAssets>
3131
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

src/Microsoft.AzureIntegrationMigration.BizTalk.Report/Microsoft.AzureIntegrationMigration.BizTalk.Report.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
<ItemGroup>
2828
<PackageReference Include="HtmlAgilityPack" Version="1.11.24" />
29-
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.3.0-alpha.2020100157976" />
29+
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.5.0" />
3030
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="3.6.0-beta1-20111-10">
3131
<PrivateAssets>all</PrivateAssets>
3232
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

src/Microsoft.AzureIntegrationMigration.BizTalk.StageRunners/Microsoft.AzureIntegrationMigration.BizTalk.StageRunners.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
</PropertyGroup>
2727

2828
<ItemGroup>
29-
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.3.0-alpha.2020100157976" />
30-
<PackageReference Include="Microsoft.AzureIntegrationMigration.Runner" Version="0.2.0-alpha.2020100155692" />
29+
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.5.0" />
30+
<PackageReference Include="Microsoft.AzureIntegrationMigration.Runner" Version="0.5.0" />
3131
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="3.6.0-beta1-20111-10">
3232
<PrivateAssets>all</PrivateAssets>
3333
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

src/Microsoft.AzureIntegrationMigration.BizTalk.Types/Microsoft.AzureIntegrationMigration.BizTalk.Types.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</PropertyGroup>
2626

2727
<ItemGroup>
28-
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.3.0-alpha.2020100157976" />
28+
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.5.0" />
2929
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="3.6.0-beta1-20111-10">
3030
<PrivateAssets>all</PrivateAssets>
3131
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

tests/Microsoft.AzureIntegrationMigration.BizTalk.Analyze.Tests/Microsoft.AzureIntegrationMigration.BizTalk.Analyze.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</ItemGroup>
3434

3535
<ItemGroup>
36-
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.3.0-alpha.2020100157976" />
36+
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.5.0" />
3737
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="3.6.0-beta1-20111-10">
3838
<PrivateAssets>all</PrivateAssets>
3939
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

tests/Microsoft.AzureIntegrationMigration.BizTalk.Cli.Tests/Microsoft.AzureIntegrationMigration.BizTalk.Cli.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.3.0-alpha.2020100157976" />
9+
<PackageReference Include="Microsoft.AzureIntegrationMigration.ApplicationModel" Version="0.5.0" />
1010
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="3.6.0-beta1-20111-10">
1111
<PrivateAssets>all</PrivateAssets>
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

0 commit comments

Comments
 (0)