Skip to content

Commit

Permalink
feat(test_deploy.yaml): add step to create directory before downloadi…
Browse files Browse the repository at this point in the history
…ng artifacts

The GitHub Actions workflow now includes a step to explicitly create a
directory at `/tmp/artifact` before attempting to download artifacts
into it. This ensures that the directory exists and prevents potential
errors during the download process. The path for storing the downloaded
`kubectl-config` and the subsequent listing of files has been updated to
this new directory to maintain consistency.
  • Loading branch information
cybersiddhu committed Jul 15, 2024
1 parent 44569bd commit 8b76a40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,17 @@ jobs:
runs-on: ubuntu-latest
needs: deploy-setup
steps:
- name: make path
run: mkdir -p /tmp/artifact
- name: download kubectl from artifact
uses: actions/download-artifact@v4
id: cluster_config
with:
name: kubectl-config
path: /tmp/config
path: /tmp/artifact
run-id: ${{ needs.deploy-setup.outputs.workflow_run_id }}
- name: list files in download folder
run: ls -l /tmp/config/
run: ls -l /tmp/artifact/


delete-artifact:
Expand Down

0 comments on commit 8b76a40

Please sign in to comment.