@intentius/chant-lexicon-github 0.1.12 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "6d10899597e1b9e94b56c19f9bad77af4f0d78468e1ebe835978a54da7b7c472",
5
- "meta.json": "18d445d9df6b533016ab023bd606a2598034412003d2f110f1ce017738e1a76f",
6
- "types/index.d.ts": "64e1dcb5c0e1995b576300ca1be3ec014f7d32600113858bf096861763e090ee",
4
+ "manifest.json": "8a23dd705158f122ea2af410bfd9a1ea907f6eadf9e7ceece9a72897d46eab15",
5
+ "meta.json": "798c5f5f37b0174756d2451299acfdc95c014f11d06d32b9153bbdfa9f3a580c",
6
+ "types/index.d.ts": "fd1f8388448a8ad7744d9190382984eaae127de7f58ce8c92204b759a00fe316",
7
7
  "rules/deprecated-action-version.ts": "d41e6e532ab7f623af1bee4ac5279fcb2baada7defa1c5d022a5bc71983e8797",
8
8
  "rules/detect-secrets.ts": "5829832eb7b43993424971041ed386b196850183bffd34bddd6439f99061e4ae",
9
9
  "rules/extract-inline-structs.ts": "8f8147c200de8ffd0620dfdcca2e2cea76a520303ce431479ebecad6aa26aab5",
@@ -37,5 +37,5 @@
37
37
  "skills/chant-github-patterns.md": "bb3abef289a8fdfcf07d6bb2d7289dcb2f38bc0cb0321ea320b78b45a6f548c0",
38
38
  "skills/chant-github-security.md": "aab111cb0871cad30281ce48d7da23663689619351029219e2be019a1a61e394"
39
39
  },
40
- "composite": "e6eedb1b9e995c346b8fc74ba57f5b15a5cec17463e8bca4bb589415f653ddea"
40
+ "composite": "57e05c2e359317313af8962ac0eee72285289d9c64217673c9e6218faeca8155"
41
41
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "github",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "GitHub",
6
6
  "intrinsics": [
package/dist/meta.json CHANGED
@@ -2,7 +2,16 @@
2
2
  "Concurrency": {
3
3
  "resourceType": "GitHub::Actions::Concurrency",
4
4
  "kind": "property",
5
- "lexicon": "github"
5
+ "lexicon": "github",
6
+ "constraints": {
7
+ "queue": {
8
+ "default": "single",
9
+ "enum": [
10
+ "single",
11
+ "max"
12
+ ]
13
+ }
14
+ }
6
15
  },
7
16
  "Container": {
8
17
  "resourceType": "GitHub::Actions::Container",
@@ -4,10 +4,12 @@
4
4
 
5
5
  export declare class Concurrency {
6
6
  constructor(props: {
7
- /** When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. Any previously pending job or workflow in the concurrency group will be canceled. */
7
+ /** When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. By default any previously pending job or workflow in the concurrency group will be canceled; this behavior can be changed with `queue`. */
8
8
  group: string;
9
9
  /** To cancel any currently running job or workflow in the same concurrency group, specify cancel-in-progress: true. */
10
10
  "cancel-in-progress"?: boolean | string;
11
+ /** Controls how pending jobs or workflow runs are queued within a concurrency group. With the default `single`, at most one run can be pending — additional pending runs cancel the previous one. With `max`, up to 100 runs can be pending and are processed in FIFO order. The combination of `queue: max` and `cancel-in-progress: true` is not allowed. */
12
+ queue?: "single" | "max";
11
13
  });
12
14
  }
13
15
 
@@ -51,7 +53,7 @@ export declare class Job {
51
53
  "runs-on": string | string[];
52
54
  /** Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time. A concurrency group can be any string or expression. The expression can use any context except for the secrets context.
53
55
  You can also specify concurrency at the workflow level.
54
- When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. Any previously pending job or workflow in the concurrency group will be canceled. To also cancel any currently running job or workflow in the same concurrency group, specify cancel-in-progress: true. */
56
+ When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. By default any previously pending job or workflow in the concurrency group will be canceled; this behavior can be changed with `queue`. To also cancel any currently running job or workflow in the same concurrency group, specify cancel-in-progress: true. */
55
57
  concurrency?: Concurrency | string;
56
58
  /** A container to run any steps in a job that don't already specify a container. If you have steps that use both script and container actions, the container actions will run as sibling containers on the same network with the same volume mounts.
57
59
  If you do not set a container, all steps will run directly on the host specified by runs-on unless a step refers to an action configured to run in a container. */
@@ -154,7 +156,7 @@ export declare class ReusableWorkflowCallJob {
154
156
  uses: string;
155
157
  /** Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time. A concurrency group can be any string or expression. The expression can use any context except for the secrets context.
156
158
  You can also specify concurrency at the workflow level.
157
- When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. Any previously pending job or workflow in the concurrency group will be canceled. To also cancel any currently running job or workflow in the same concurrency group, specify cancel-in-progress: true. */
159
+ When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. By default any previously pending job or workflow in the concurrency group will be canceled; this behavior can be changed with `queue`. To also cancel any currently running job or workflow in the same concurrency group, specify cancel-in-progress: true. */
158
160
  concurrency?: string | Record<string, any>;
159
161
  /** You can use the if conditional to prevent a job from running unless a condition is met. You can use any supported context and expression to create a conditional.
160
162
  Expressions in an if conditional do not require the ${{ }} syntax. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions. */
@@ -238,7 +240,7 @@ You can run an unlimited number of jobs as long as you are within the workflow u
238
240
  on: Record<string, unknown>;
239
241
  /** Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time. A concurrency group can be any string or expression. The expression can use any context except for the secrets context.
240
242
  You can also specify concurrency at the workflow level.
241
- When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. Any previously pending job or workflow in the concurrency group will be canceled. To also cancel any currently running job or workflow in the same concurrency group, specify cancel-in-progress: true. */
243
+ When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. By default any previously pending job or workflow in the concurrency group will be canceled; this behavior can be changed with `queue`. To also cancel any currently running job or workflow in the same concurrency group, specify cancel-in-progress: true. */
242
244
  concurrency?: Concurrency | string;
243
245
  /** A map of default settings that will apply to all jobs in the workflow. */
244
246
  defaults?: Defaults;
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-github",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "GitHub Actions lexicon for chant — declarative IaC in TypeScript",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://intentius.io/chant",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/intentius/chant.git",
9
+ "url": "https://github.com/INTENTIUS/chant.git",
10
10
  "directory": "lexicons/github"
11
11
  },
12
12
  "bugs": {
13
- "url": "https://github.com/intentius/chant/issues"
13
+ "url": "https://github.com/INTENTIUS/chant/issues"
14
14
  },
15
15
  "keywords": [
16
16
  "infrastructure-as-code",
@@ -4,10 +4,12 @@
4
4
 
5
5
  export declare class Concurrency {
6
6
  constructor(props: {
7
- /** When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. Any previously pending job or workflow in the concurrency group will be canceled. */
7
+ /** When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. By default any previously pending job or workflow in the concurrency group will be canceled; this behavior can be changed with `queue`. */
8
8
  group: string;
9
9
  /** To cancel any currently running job or workflow in the same concurrency group, specify cancel-in-progress: true. */
10
10
  "cancel-in-progress"?: boolean | string;
11
+ /** Controls how pending jobs or workflow runs are queued within a concurrency group. With the default `single`, at most one run can be pending — additional pending runs cancel the previous one. With `max`, up to 100 runs can be pending and are processed in FIFO order. The combination of `queue: max` and `cancel-in-progress: true` is not allowed. */
12
+ queue?: "single" | "max";
11
13
  });
12
14
  }
13
15
 
@@ -51,7 +53,7 @@ export declare class Job {
51
53
  "runs-on": string | string[];
52
54
  /** Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time. A concurrency group can be any string or expression. The expression can use any context except for the secrets context.
53
55
  You can also specify concurrency at the workflow level.
54
- When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. Any previously pending job or workflow in the concurrency group will be canceled. To also cancel any currently running job or workflow in the same concurrency group, specify cancel-in-progress: true. */
56
+ When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. By default any previously pending job or workflow in the concurrency group will be canceled; this behavior can be changed with `queue`. To also cancel any currently running job or workflow in the same concurrency group, specify cancel-in-progress: true. */
55
57
  concurrency?: Concurrency | string;
56
58
  /** A container to run any steps in a job that don't already specify a container. If you have steps that use both script and container actions, the container actions will run as sibling containers on the same network with the same volume mounts.
57
59
  If you do not set a container, all steps will run directly on the host specified by runs-on unless a step refers to an action configured to run in a container. */
@@ -154,7 +156,7 @@ export declare class ReusableWorkflowCallJob {
154
156
  uses: string;
155
157
  /** Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time. A concurrency group can be any string or expression. The expression can use any context except for the secrets context.
156
158
  You can also specify concurrency at the workflow level.
157
- When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. Any previously pending job or workflow in the concurrency group will be canceled. To also cancel any currently running job or workflow in the same concurrency group, specify cancel-in-progress: true. */
159
+ When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. By default any previously pending job or workflow in the concurrency group will be canceled; this behavior can be changed with `queue`. To also cancel any currently running job or workflow in the same concurrency group, specify cancel-in-progress: true. */
158
160
  concurrency?: string | Record<string, any>;
159
161
  /** You can use the if conditional to prevent a job from running unless a condition is met. You can use any supported context and expression to create a conditional.
160
162
  Expressions in an if conditional do not require the ${{ }} syntax. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions. */
@@ -238,7 +240,7 @@ You can run an unlimited number of jobs as long as you are within the workflow u
238
240
  on: Record<string, unknown>;
239
241
  /** Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time. A concurrency group can be any string or expression. The expression can use any context except for the secrets context.
240
242
  You can also specify concurrency at the workflow level.
241
- When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. Any previously pending job or workflow in the concurrency group will be canceled. To also cancel any currently running job or workflow in the same concurrency group, specify cancel-in-progress: true. */
243
+ When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. By default any previously pending job or workflow in the concurrency group will be canceled; this behavior can be changed with `queue`. To also cancel any currently running job or workflow in the same concurrency group, specify cancel-in-progress: true. */
242
244
  concurrency?: Concurrency | string;
243
245
  /** A map of default settings that will apply to all jobs in the workflow. */
244
246
  defaults?: Defaults;
@@ -2,7 +2,16 @@
2
2
  "Concurrency": {
3
3
  "resourceType": "GitHub::Actions::Concurrency",
4
4
  "kind": "property",
5
- "lexicon": "github"
5
+ "lexicon": "github",
6
+ "constraints": {
7
+ "queue": {
8
+ "default": "single",
9
+ "enum": [
10
+ "single",
11
+ "max"
12
+ ]
13
+ }
14
+ }
6
15
  },
7
16
  "Container": {
8
17
  "resourceType": "GitHub::Actions::Container",