Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions packages/pkl.impl.ghactions/PklCI.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import "actions/PublishUnitTestResult.pkl"
///
/// * [Workflow.On.pull_request]
/// * [Workflow.name]
/// * [Workflow.permissions]
///
/// This turns into a workflow called "Pull Request".
prb: Workflow
Expand All @@ -36,6 +37,7 @@ prb: Workflow
/// The following fields are amended with additional settings:
/// * [Workflow.On.push]
/// * [Workflow.name]
/// * [Workflow.permissions]
///
/// This turns into a workflow called "Build (main)".
main: Workflow
Expand All @@ -45,6 +47,7 @@ main: Workflow
/// The following fields are amended with additional settings:
/// * [Workflow.On.push]
/// * [Workflow.name]
/// * [Workflow.permissions]
///
/// This turns into a workflow called "Build".
build: Workflow
Expand All @@ -54,6 +57,7 @@ build: Workflow
/// The following fields are amended with additional settings:
/// * [Workflow.On.push]
/// * [Workflow.name]
/// * [Workflow.permissions]
///
/// This turns into a workflow called "Release".
release: Workflow?
Expand All @@ -63,6 +67,7 @@ release: Workflow?
/// The following fields are amended with additional settings:
/// * [Workflow.On.push]
/// * [Workflow.name]
/// * [Workflow.permissions]
///
/// This turns into a workflow called "Build (release branch)".
releaseBranch: Workflow?
Expand Down Expand Up @@ -106,6 +111,9 @@ class TestReports {

local effectiveBuildWorkflow = (build) {
name = "Build"
permissions = new {
contents = "read"
}
on {
push {
`branches-ignore` {
Expand All @@ -122,6 +130,9 @@ local effectiveBuildWorkflow = (build) {

local effectiveReleaseBranchWorkflow = (build) {
name = "Build (release branch)"
permissions = new {
contents = "read"
}
on {
push {
branches {
Expand All @@ -137,6 +148,9 @@ local effectiveReleaseBranchWorkflow = (build) {

local effectiveMainWorkflow = (main) {
name = "Build (main)"
permissions = new {
contents = "read"
}
on {
push {
branches {
Expand All @@ -158,6 +172,9 @@ local effectiveMainWorkflow = (main) {
/// published here.
local effectivePrbWorkflow = (prb) {
name = "Pull Request"
permissions = new {
contents = "read"
}
on {
pull_request {}
}
Expand All @@ -166,6 +183,9 @@ local effectivePrbWorkflow = (prb) {

local effectiveReleaseWorkflow = (release) {
name = "Release"
permissions = new {
contents = "read"
}
on {
push {
tags {
Expand All @@ -184,6 +204,9 @@ local effectiveReleaseWorkflow = (release) {

local testReportWorkflow: Workflow = new {
name = "PR Test Reports"
permissions = new {
contents = "read"
}

on {
workflow_run {
Expand Down
2 changes: 1 addition & 1 deletion packages/pkl.impl.ghactions/PklProject
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
amends "../basePklProject.pkl"

package {
version = "0.3.1"
version = "0.3.2"
}

dependencies {
Expand Down