Skip to content

Commit

Permalink
CI: add workflow_dispatch for devcontainer.yml (#1882)
Browse files Browse the repository at this point in the history
* CI: add workflow_dispatch for devcontainer.yml

* CI: add docker tag as input for manual dispatch of devcontainer
  • Loading branch information
glihm authored Apr 27, 2024
1 parent cac60c3 commit a3587b3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: devcontainer

on:
workflow_dispatch:
inputs:
docker_tag:
description: Descriptive name of the devcontainer for the Docker tag
required: true
type: string
push:
paths:
- ".devcontainer/**"
Expand Down Expand Up @@ -45,6 +51,11 @@ jobs:
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c 1-7)
echo "DOCKER_TAG=$SHORT_SHA" >> $GITHUB_ENV
- name: Set Docker tag for workflow_dispatch event
if: github.event_name == 'workflow_dispatch'
run: |
echo "DOCKER_TAG=${{ inputs.docker_tag }}" >> $GITHUB_ENV
- name: Set outputs
id: release_info
run: |
Expand Down

0 comments on commit a3587b3

Please sign in to comment.