Skip to content

Commit

Permalink
change the way that we use PATH_TO_MOUNT
Browse files Browse the repository at this point in the history
  • Loading branch information
ladylokizup committed Feb 6, 2024
1 parent 4964cb1 commit 2995caf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ inputs:
required: false
PATH_TO_MOUNT:
description: "Path to mount inside the docker"
required: true
default: ${{ github.workflow }}
required: false
default: ${{ github.workspace }}

runs:
using: "composite"
Expand All @@ -61,6 +61,12 @@ runs:
role-to-assume: ${{ inputs.AWS_ROLE_ARN }}
aws-region: ${{ inputs.AWS_REGION }}
output-credentials: true

- name: Checkout
if: ${{ inputs.PATH_TO_MOUNT == github.workspace }}
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}

- name: Run Runtime Action Destroy
if: ${{ inputs.AWS_ROLE_ARN == 0 }}
Expand Down

0 comments on commit 2995caf

Please sign in to comment.