File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ inputs:
55 description : ' Command to run in the devcontainer'
66 required : true
77 type : string
8- devcontainer-path :
9- description : ' Path to devcontainer config '
10- required : false
11- default : ' .devcontainer '
8+ token :
9+ description : ' GitHub token '
10+ required : true
11+ type : string
1212
1313runs :
1414 using : ' composite'
2121 with :
2222 registry : ghcr.io
2323 username : ${{ github.repository_owner }}
24- password : ${{ secrets.GITHUB_TOKEN }}
24+ password : ${{ inputs.token }}
2525
2626 - name : Get devcontainer image name
27+ shell : bash
2728 run : |
2829 image="ghcr.io/${{ github.repository }}-devcontainer"
2930 echo "IMAGE_NAME=${image,,}" >> $GITHUB_ENV
3435 imageName : ${{ env.IMAGE_NAME }}
3536 cacheFrom : ${{ env.IMAGE_NAME }}
3637 push : always
37- devcontainerPath : ${{ inputs.devcontainer-path }}
3838 runCmd : ${{ inputs.command }}
Original file line number Diff line number Diff line change 1818 steps :
1919 - uses : VolumeGraphics/traits/.github/actions/devcontainer@main
2020 with :
21- command : ${{ inputs.run_cmd }}
21+ command : ${{ inputs.run_cmd }}
22+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments