Skip to content

jessica-mitchell is testing out GitHub Actions πŸš€ #12

jessica-mitchell is testing out GitHub Actions πŸš€

jessica-mitchell is testing out GitHub Actions πŸš€ #12

#
# get nest version from experimental ebrains
#
# env:
# NEST_VERSION: $nest_version
# EBRAINS_VERSION: "experimental"
# EBRAINS_DISPLAY_NAME: "Experimental"
#
#
#checkout new branch this repo with nest version
#
#checkout nest-simulator
#
#copy files to new branch
#
#convert to notebooks
#
#name: Target Workflow
on:
workflow_dispatch:
repository_dispatch:
types: [Integration-with-Automation]
run-name: ${{ github.actor }} is testing out GitHub Actions πŸš€
jobs:
build:
runs-on: ubuntu-latest
env:
NAME: ebrains-experimental
DISPLAY_NAME: "EBRAINS-experimental"
steps:
- name: Set environment variable
run: echo "MY_ENV_VAR=myValue" >> $GITHUB_ENV
- name: Use test variable
run: |
echo "The value of MY_ENV_VAR is $MY_ENV_VAR"
- name: Get NEST version
run: |
wget -q -O spack.txt 'https://gitlab.ebrains.eu/ri/tech-hub/platform/esd/ebrains-spack-builds/-/raw/master/spack.yaml?ref_type=heads&inline=false'
sed -rn 's/^\s.*nest@([0-9]\.[0-9]).*/\1/p' spack.txt >> nestvers.txt
cat nestvers.txt
echo "NEST_VERSION=3.8" >> $GITHUB_ENV
echo "NEST_VERSION IS $NEST_VERSION"
#run: echo "NEST_VERSION = $(wget -q -O - 'https://gitlab.ebrains.eu/ri/tech-hub/platform/esd/ebrains-spack-builds/-/raw/master/spack.yaml?ref_type=heads&inline=false' | sed -rn 's/^\s.*nest@([0-9]\.[0-9]).*/\1/p')" >> $GITHUB_ENV
- name: Use environment variable
run: |
echo "The value of MY_ENV_VAR is $NEST_VERSION"
- name: Check out repository code
uses: actions/checkout@v4
- name: Run a one-line script
run: echo Hello, NEST!