Skip to content

Commit

Permalink
CI: add workflow_dispatch for devcontainer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm authored Apr 26, 2024
1 parent dbdd5f3 commit cf32169
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: devcontainer

on:
workflow_dispatch:
push:
paths:
- ".devcontainer/**"
Expand Down Expand Up @@ -40,7 +41,7 @@ jobs:
echo "tag_name=$DOCKER_TAG" >> $GITHUB_OUTPUT
- name: Set Docker tag for push event
if: github.event_name == 'push'
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
run: |
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c 1-7)
echo "DOCKER_TAG=$SHORT_SHA" >> $GITHUB_ENV
Expand Down

0 comments on commit cf32169

Please sign in to comment.