Skip to content

Commit

Permalink
fix dependents
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHX committed Oct 7, 2023
1 parent b008639 commit 284aba3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@ on:
push:
branches:
- main
pull_request:
jobs:
deploy:
# Allow one concurrent deployment
concurrency:
group: "pages"
group: ${{ github.event_name == 'push' && 'pages' || github.run_id }}
cancel-in-progress: true
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
name: ${{ github.event_name == 'push' && 'github-pages' || '' }}
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
env:
Expand All @@ -32,11 +33,14 @@ jobs:
mkdir webapp
mv out/wwwroot webapp/ExpandAzurePipelines
- name: Setup Pages
if: github.event_name == 'push'
uses: actions/configure-pages@v3
- name: Upload artifact
if: github.event_name == 'push'
uses: actions/upload-pages-artifact@v1
with:
path: 'webapp'
- name: Deploy to GitHub Pages
if: github.event_name == 'push'
id: deployment
uses: actions/deploy-pages@v1
4 changes: 2 additions & 2 deletions src/ExpandAzurePipelines/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@
TraceWriter = new GitHub.DistributedTask.ObjectTemplating.EmptyTraceWriter(),
Flags = GitHub.DistributedTask.Expressions2.ExpressionFlags.DTExpressionsV1 | GitHub.DistributedTask.Expressions2.ExpressionFlags.ExtendedDirectives
};
var template = AzureDevops.ReadTemplate(context, currentFileName);
var pipeline = new Runner.Server.Azure.Devops.Pipeline().Parse(context.ChildContext(template, currentFileName), template);
var template = await AzureDevops.ReadTemplate(context, currentFileName);
var pipeline = await new Runner.Server.Azure.Devops.Pipeline().Parse(context.ChildContext(template, currentFileName), template);
var newcontent = pipeline.ToContextData().ToJToken().ToString();
var deserializer = new YamlDotNet.Serialization.DeserializerBuilder().Build();
var serializer = new YamlDotNet.Serialization.SerializerBuilder().WithEventEmitter(emitter => {
Expand Down
4 changes: 2 additions & 2 deletions src/Runner.Server/Controllers/MessageController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3186,7 +3186,7 @@ private HookResponse AzureDevopsMain(string fileRelativePath, string content, st
workflowParameters[kv.Key.ToString()] = kv.Value;
}
}
var evaluatedRoot = AzureDevops.ReadTemplate(context, fileRelativePath, workflowParameters);
var evaluatedRoot = AzureDevops.ReadTemplate(context, fileRelativePath, workflowParameters).GetAwaiter().GetResult();
bool forceTaskCacheUpdate = workflowContext.HasFeature("system.runner.server.forceTaskCacheUpdate");
bool skipTaskCacheUpdate = workflowContext.HasFeature("system.runner.server.skipTaskCacheUpdate");
bool taskCacheUpdate = workflowContext.HasFeature("system.runner.server.taskCacheUpdate");
Expand Down Expand Up @@ -3305,7 +3305,7 @@ private HookResponse AzureDevopsMain(string fileRelativePath, string content, st
return null;
} };

var pipeline = new Azure.Devops.Pipeline().Parse(context.ChildContext(evaluatedRoot, fileRelativePath), evaluatedRoot);
var pipeline = new Azure.Devops.Pipeline().Parse(context.ChildContext(evaluatedRoot, fileRelativePath), evaluatedRoot).GetAwaiter().GetResult();

var localJobCompletedEvents = new LocalJobCompletedEvents();
Action<JobCompletedEvent> jobCompleted = e => {
Expand Down

0 comments on commit 284aba3

Please sign in to comment.