Skip to content

Commit

Permalink
Set target version to post-checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
kenmuse committed Oct 20, 2024
1 parent 639a9de commit 6863220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Get target Node version
- uses: actions/checkout@v4
- name: Get target runtime versions
run: |
NODE_VERSION=$(cat .devcontainer/devcontainer.json | sed 's/^ *\/\/.*//' | jq -r '.features["ghcr.io/devcontainers/features/node:1"].version')
echo "NODE_VERSION=$NODE_VERSION" >> $GITHUB_ENV
PYTHON_VERSION=$(cat .devcontainer/devcontainer.json | sed 's/^ *\/\/.*//' | jq -r '.features["./features/python-binary"].version')
echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Install Hadolint
run: sudo ./.devcontainer/features/hadolint/install.sh
- name: Configure Node.js
Expand Down

0 comments on commit 6863220

Please sign in to comment.