Skip to content

Commit 8e9e919

Browse files
committed
Fix composite action
1 parent f034c0f commit 8e9e919

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/actions/devcontainer/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

1313
runs:
1414
using: 'composite'
@@ -21,9 +21,10 @@ runs:
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
@@ -34,5 +35,4 @@ runs:
3435
imageName: ${{ env.IMAGE_NAME }}
3536
cacheFrom: ${{ env.IMAGE_NAME }}
3637
push: always
37-
devcontainerPath: ${{ inputs.devcontainer-path }}
3838
runCmd: ${{ inputs.command }}

.github/workflows/devcontainer-command.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ jobs:
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 }}

0 commit comments

Comments
 (0)