Skip to content

Commit 8146606

Browse files
committed
remove snapshot switch
1 parent 7650813 commit 8146606

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/packer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
shell: bash
149149

150150
- name: Run Uploader
151-
run: .\Uploader --host="${{ secrets.SSH_IP }}" --name="${{ secrets.SSH_USER }}" --password="${{ secrets.SSH_PWD }}" ${{ github.event_name != 'workflow_dispatch' && '--create-snapshot' || '' }}
151+
run: .\Uploader --host="${{ secrets.SSH_IP }}" --name="${{ secrets.SSH_USER }}" --password="${{ secrets.SSH_PWD }}"
152152
env:
153153
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
154154
SHA: ${{ github.sha }}

src/Uploader/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Uploader
1212
{
1313
static class Program
1414
{
15-
static async Task Main(string host, string name, string password, bool createSnapshot = false)
15+
static async Task Main(string host, string name, string password)
1616
{
1717
Log.Logger = new LoggerConfiguration()
1818
.Enrich.FromLogContext()
@@ -54,7 +54,7 @@ static async Task Main(string host, string name, string password, bool createSna
5454
IEnumerable<Task> tasks =
5555
[
5656
//UploadToServer(host, name, password, files),
57-
createSnapshot ? UploadSnapshotAssets(client, files): Task.CompletedTask,
57+
UploadSnapshotAssets(client, files),
5858
UpdateAutobuildAssets(client, files)
5959
];
6060
await Task.WhenAll(tasks);

0 commit comments

Comments
 (0)