Skip to content

Commit

Permalink
Fix composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
eel76 committed Nov 20, 2024
1 parent f034c0f commit 8e9e919
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/actions/devcontainer/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ inputs:
description: 'Command to run in the devcontainer'
required: true
type: string
devcontainer-path:
description: 'Path to devcontainer config'
required: false
default: '.devcontainer'
token:
description: 'GitHub token'
required: true
type: string

runs:
using: 'composite'
Expand All @@ -21,9 +21,10 @@ runs:
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ inputs.token }}

- name: Get devcontainer image name
shell: bash
run: |
image="ghcr.io/${{ github.repository }}-devcontainer"
echo "IMAGE_NAME=${image,,}" >> $GITHUB_ENV
Expand All @@ -34,5 +35,4 @@ runs:
imageName: ${{ env.IMAGE_NAME }}
cacheFrom: ${{ env.IMAGE_NAME }}
push: always
devcontainerPath: ${{ inputs.devcontainer-path }}
runCmd: ${{ inputs.command }}
3 changes: 2 additions & 1 deletion .github/workflows/devcontainer-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ jobs:
steps:
- uses: VolumeGraphics/traits/.github/actions/devcontainer@main
with:
command: ${{ inputs.run_cmd }}
command: ${{ inputs.run_cmd }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8e9e919

Please sign in to comment.