Skip to content

Commit

Permalink
Merge pull request #12 from step-security/shubham-patch-1
Browse files Browse the repository at this point in the history
Patch for Determine Action step
  • Loading branch information
varunsh-coder authored Jul 29, 2024
2 parents a96326f + 6ac8251 commit 0474024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actions_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
- name: Determine Action Type
id: check-action
run: |
if grep -q "using: ['\"]docker['\"]" action.yml; then
if grep -E -q "using: ['\"]?docker['\"]?" action.yml action.yaml 2>/dev/null; then
echo "action_type=docker" >> $GITHUB_ENV
elif grep -q "using: ['\"]node[0-9]*['\"]" action.yml; then
elif grep -E -q "using: ['\"]?node[0-9]+['\"]?" action.yml action.yaml 2>/dev/null; then
echo "action_type=node" >> $GITHUB_ENV
else
echo "action_type=unknown" >> $GITHUB_ENV
Expand Down

0 comments on commit 0474024

Please sign in to comment.