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
4 changes: 2 additions & 2 deletions .github/workflows/build-status-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v5
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}

- name: Set Up Deno (${{ vars.DENO_VERSION }})
uses: denoland/setup-deno@v2
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 #v2.0.4
with:
deno-version: ${{ vars.DENO_VERSION }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dotnet-action-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ jobs:
runs-on: "${{ inputs.runs-on }}"
steps:
- name: Checkout Repository
uses: actions/checkout@v5
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2

- name: Set Up Deno (${{ inputs.deno-version }})
uses: denoland/setup-deno@v2
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 #v2.0.4
with:
deno-version: ${{ inputs.deno-version }}
cache: ${{ inputs.enable-deno-cache }}
Expand Down Expand Up @@ -226,7 +226,7 @@ jobs:
runs-on: "${{ inputs.runs-on }}"
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2

- name: Create GitHub Release ${{ inputs.dry-run == true && '(Dry Run)' || '' }}
if: inputs.dry-run == false
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/dotnet-lib-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v5
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2

- name: Set Up Deno (${{ inputs.deno-version }})
uses: denoland/setup-deno@v2
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 #v2.0.4
with:
deno-version: ${{ inputs.deno-version }}
cache: ${{ inputs.enable-deno-cache }}
Expand Down Expand Up @@ -248,11 +248,11 @@ jobs:
steps:
- name: Checkout Repository
if: inputs.build-project == true
uses: actions/checkout@v5
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2

- name: Set Up .NET SDK (${{ inputs.net-sdk-version }})
if: inputs.build-project == true
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 #v5.2.0
with:
dotnet-version: ${{ inputs.net-sdk-version }}

Expand All @@ -275,18 +275,18 @@ jobs:
]
steps:
- name: Checkout Repository
uses: actions/checkout@v5
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2

- name: Set Up .NET SDK
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 #v5.2.0
with:
dotnet-version: "${{ inputs.net-sdk-version }}"

- name: Set Up Nuget
uses: NuGet/setup-nuget@v2
uses: NuGet/setup-nuget@fd55a6f3b34392fa83fde1454582407d8c714123 #v4.0.0

- name: Set Up Deno (${{ inputs.deno-version }})
uses: denoland/setup-deno@v2
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 #v2.0.4
with:
deno-version: ${{ inputs.deno-version }}
cache: ${{ inputs.enable-deno-cache }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-status-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2

- name: Set Up Deno (${{ vars.DENO_VERSION }})
uses: denoland/setup-deno@v2
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 #v2.0.4
with:
deno-version: ${{ vars.DENO_VERSION }}

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ jobs:
}

- name: Checkout Repository
uses: actions/checkout@v5
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2

- name: Set Up Deno (${{ vars.DENO_VERSION }})
uses: denoland/setup-deno@v2
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 #v2.0.4
with:
deno-version: ${{ vars.DENO_VERSION }}
cache: true
Expand Down Expand Up @@ -164,10 +164,10 @@ jobs:
needs: [get_and_validate_version, run_prerelease_validation]
steps:
- name: Checkout Repository
uses: actions/checkout@v5
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2

- name: Set Up Deno (${{ vars.DENO_VERSION }})
uses: denoland/setup-deno@v2
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 #v2.0.4
with:
deno-version: ${{ vars.DENO_VERSION }}
cache: true
Expand All @@ -182,10 +182,10 @@ jobs:
needs: [get_and_validate_version, run_prerelease_validation]
steps:
- name: Checkout Repository
uses: actions/checkout@v5
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2

- name: Set Up Deno (${{ vars.DENO_VERSION }})
uses: denoland/setup-deno@v2
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 #v2.0.4
with:
deno-version: ${{ vars.DENO_VERSION }}
cache: true
Expand All @@ -202,12 +202,12 @@ jobs:
contents: write
steps:
- name: Checkout Repo
uses: actions/checkout@v5
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
token: ${{ secrets.CICD_TOKEN }}

- name: Set Up Deno (${{ vars.DENO_VERSION }})
uses: denoland/setup-deno@v2
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 #v2.0.4
with:
deno-version: ${{ vars.DENO_VERSION }}
cache: true
Expand Down
26 changes: 26 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,32 @@
"runtimeExecutable": "${userHome}/.deno/bin/deno"
}
},
{ // GET DENO CONFIG VERSION
"name": "Get Deno Config Version",
"request": "launch",
"type": "node",
"program": "${workspaceFolder}/actions/get-deno-config-version/get-deno-config-version.ts",
"cwd": "${workspaceFolder}",
"env": {
"CONFIG_FILE_PATH": "",
"TRIM_VERSION_PREFIX": "false",
"FAIL_IF_CONFIG_NOT_FOUND": "true",
"GITHUB_OUTPUT": "${workspaceFolder}/github_output.txt"
},
"runtimeArgs": [
"run",
"-ERWN",
"--inspect-wait",
],
"attachSimplePort": 9229,
"windows": {
"runtimeExecutable": "${userHome}/.deno/bin/deno.exe"
},
"linux": {
"runtimeExecutable": "${userHome}/.deno/bin/deno"
},
"console": "integratedTerminal"
},
{ // RELEASE NOTES GENERATOR TOOL
"name": "Release Notes Generator Tool",
"request": "launch",
Expand Down
4 changes: 2 additions & 2 deletions actions/close-milestone/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
using: "composite"
steps:
- name: Setup Deno (v2.7.14)
uses: denoland/setup-deno@v2
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 #v2.0.4
with:
deno-version: v2.7.14
cache: true
Expand All @@ -31,6 +31,6 @@ runs:
GITHUB_TOKEN: "${{ inputs.github-token }}"
DENO_AUTH_TOKENS: "${{ inputs.github-token }}@raw.githubusercontent.com"
run: |
$scriptFilePath = "${{ github.action_path }}/close-milestone.ts";
$scriptFilePath = "$env:ACTION_PATH/close-milestone.ts";

deno run -ERN $scriptFilePath;
57 changes: 57 additions & 0 deletions actions/get-deno-config-version/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: "Get Deno Config Version"
description: "Gets the Deno configuration version for a GitHub repository"
inputs:
config-file-path:
description: |
The path to the Deno configuration file (e.g., deno.json or deno.jsonc) relative to the repository root.

If a file path is provided:
The action will attempt to read the Deno version from that file. The action
will fail if the file is not found when the 'fail-if-config-not-found' input is set to 'true'.

If a file path is not provided:
The action will attempt to find a Deno configuration file in the repository by looking for
files named "deno.json" or "deno.jsonc" in the repository root and then recursively in subdirectories. The first
file found will be used to determine the Deno version. The action will fail if the file is not
found when the 'fail-if-config-not-found' input is set to 'true'.

If a found configuration file does not specify a 'version' property, the action will fail.
required: false
trim-version-prefix:
description: |
Whether to trim the 'v' prefix from the version set to the action output.

Default: false
required: false
default: "false"
fail-if-config-not-found:
description: |
Whether the action should fail if the Deno configuration file is not found.

Default: true
required: false
default: "true"
outputs:
deno-config-version:
description: "The version of Deno specified in the configuration file."
value: ${{ steps.get-deno-config-version.outputs.deno-config-version }}
runs:
using: "composite"
steps:
- name: Setup Deno (v2.7.14)
uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 #v2.0.4
with:
deno-version: v2.7.14
cache: true

- name: Run Script
shell: pwsh
id: get-deno-config-version
env:
CONFIG_FILE_PATH: "${{ inputs.config-file-path }}"
TRIM_VERSION_PREFIX: "${{ inputs.trim-version-prefix }}"
FAIL_IF_CONFIG_NOT_FOUND: "${{ inputs.fail-if-config-not-found }}"
run: |
$scriptFilePath = "$env:ACTION_PATH/get-deno-config-version.ts";

deno run -ERWN $scriptFilePath;
Loading