This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update node version - nix flake | |
on: | |
push: | |
branches: | |
- master | |
- 'hotfix/**' | |
jobs: | |
check-if-update-required: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: check git diff | |
run: | | |
if [[ "salut toto tu vas bien" =~ .*"toto".* ]]; then | |
echo "It's there." | |
fi | |
check-node-version: | |
runs-on: ubuntu-latest | |
outputs: | |
NODE_VERSION: ${{ steps.output_node_version.outputs.NODE_VERSION }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: get_package_json_content | |
run: | | |
{ | |
echo 'PACKAGE_JSON_CONTENT<<EOF' | |
cat ./package.json | |
echo EOF | |
} >> $GITHUB_OUTPUT | |
- id: extract_node_version | |
run: echo "NODE_VERSION=${{ fromJSON(steps.get_package_json_content.outputs.PACKAGE_JSON_CONTENT).volta.node }}" >> $GITHUB_OUTPUT | |
- name: output node version | |
id: output_node_version | |
run: echo ${{ steps.extract_node_version.outputs.NODE_VERSION }} |