several improvements of workflow #1
Workflow file for this run
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: 'devcontainer CI' | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout from github | |
uses: actions/checkout@v3 | |
- name: extract the github reference | |
run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV | |
- name: Build and run dev container task | |
uses: devcontainers/[email protected] | |
with: | |
imageName: lcas.lincoln.ac.uk/devcontainer/${{ github.repository}} | |
push: never | |
imageTag: ${{ env.BRANCH }} | |
#runCmd: "bash .devcontainer/run-ci.sh" |