Warning, /run-cvmfs-osg-eic-shell/action.yml is written in an unsupported language. File is not indexed.
0001 name: 'execute user code in an EIC environment'
0002 description: 'Spawns appropriate docker image and executes user code in the environment of a specified EIC shell'
0003 branding:
0004 icon: 'play'
0005 color: 'blue'
0006 inputs:
0007 organization:
0008 description: 'EIC shell organization you are targeting (e.g. eic)'
0009 required: false
0010 default: 'eicweb'
0011 platform:
0012 description: 'EIC shell platform you are targeting (e.g. eic_xl)'
0013 required: false
0014 default: ''
0015 release:
0016 description: 'EIC shell release you are targeting (e.g. 3.0-stable)'
0017 required: false
0018 default: ''
0019 platform-release:
0020 description: 'EIC shell release platform string you are targeting (e.g. eic_xl:24.11.2-stable)'
0021 required: false
0022 default: ''
0023 cvmfs-prefix:
0024 description: 'Base CVMFS path prefix containing EIC shell images (default: /cvmfs/singularity.opensciencegrid.org)'
0025 required: false
0026 default: '/cvmfs/singularity.opensciencegrid.org'
0027 run:
0028 description: 'They payload code you want to execute on top of the view'
0029 required: false
0030 default: ''
0031 setup:
0032 description: 'Environment initialization bash script that is sourced (e.g. install/bin/thisepic.sh)'
0033 required: false
0034 default: ''
0035 sandbox-path:
0036 description: 'Custom path where the sandbox is located'
0037 required: false
0038 default: ''
0039 apptainer_version:
0040 description: 'Apptainer version to use (e.g. v1.4.5 or latest)'
0041 required: false
0042 default: 'v1.4.5'
0043 apptainer_deb_cache:
0044 description: 'Location (directory) of the cached apptainer deb.'
0045 required: false
0046 default: 'apptainer_deb_cache'
0047
0048 runs:
0049 using: "composite"
0050 steps:
0051 - name: Restore cached apptainer package
0052 id: cache-restore
0053 uses: actions/cache@v5
0054 with:
0055 key: apptainer-deb-cache-${{ inputs.apptainer_version }}
0056 path: |
0057 ${{ inputs.apptainer_deb_cache }}
0058 - name: Run inside eic-shell
0059 id: run-eic-shell
0060 run: |
0061 ${{ github.action_path }}/setup-eic-shell.sh
0062 shell: bash
0063 env:
0064 THIS: ${{ github.action_path }}
0065 GITHUB_ACTOR: ${{ github.actor }}
0066 EIC_SHELL_ORGANIZATION: ${{ inputs.organization }}
0067 EIC_SHELL_RELEASE: ${{ inputs.release }}
0068 EIC_SHELL_PLATFORM_RELEASE: ${{ inputs.platform-release }}
0069 EIC_SHELL_PLATFORM: ${{ inputs.platform }}
0070 EIC_SHELL_CVMFS_PREFIX: ${{ inputs.cvmfs-prefix }}
0071 RUN: ${{ inputs.run }}
0072 SETUP: ${{ inputs.setup }}
0073 SANDBOX_PATH: ${{ inputs.sandbox-path }}
0074 APPTAINER_DEB_CACHE: ${{ inputs.apptainer_deb_cache }}
0075 APPTAINER_VERSION: ${{ inputs.apptainer_version }}
0076 - name: Store apptainer package to cache
0077 uses: actions/cache/save@v5
0078 if: steps.run-eic-shell.outputs.cache-update == 'true'
0079 with:
0080 key: apptainer-deb-cache-${{ inputs.apptainer_version }}
0081 path: |
0082 ${{ inputs.apptainer_deb_cache }}