Ensure cli using latest version from the supported_cli_versions.json (#1992)
This commit is contained in:
6
.github/workflows/bump-cli.yml
vendored
6
.github/workflows/bump-cli.yml
vendored
@@ -45,10 +45,10 @@ jobs:
|
||||
- name: Prepend another version
|
||||
if: ${{ inputs.option == 'prepend' }}
|
||||
run: |
|
||||
cat supported_cli_versions.json | jq '. |= ["${{ inputs.version }}"] + .' > supported_cli_versions_temp.json
|
||||
mv supported_cli_versions_temp.json supported_cli_versions.json
|
||||
cat extensions/ql-vscode/supported_cli_versions.json | jq '. |= ["${{ inputs.version }}"] + .' > supported_cli_versions_temp.json
|
||||
mv supported_cli_versions_temp.json extensions/ql-vscode/supported_cli_versions.json
|
||||
echo "LATEST_VERSION=${{ inputs.version }}" >> $GITHUB_ENV
|
||||
echo "PREVIOUS_VERSION=`jq -r '.[1]' supported_cli_versions.json`" >> $GITHUB_ENV
|
||||
echo "PREVIOUS_VERSION=`jq -r '.[1]' extensions/ql-vscode/supported_cli_versions.json`" >> $GITHUB_ENV
|
||||
- name: Commit, Push and Open a PR
|
||||
uses: ./.github/actions/create-pr
|
||||
with:
|
||||
|
||||
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -191,7 +191,7 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
- name: Set the variables
|
||||
id: set-variables
|
||||
run: echo "cli-versions=$(cat ./supported_cli_versions.json | jq -rc)" >> $GITHUB_OUTPUT
|
||||
run: echo "cli-versions=$(cat ./extensions/ql-vscode/supported_cli_versions.json | jq -rc)" >> $GITHUB_OUTPUT
|
||||
outputs:
|
||||
cli-versions: ${{ steps.set-variables.outputs.cli-versions }}
|
||||
cli-test:
|
||||
|
||||
Reference in New Issue
Block a user