Closed
Description
If you attempt to call setup-matlab
twice in a single workflow, to set up two different releases of MATLAB for instance, the second call will result in an error saying "Destination file path /home/runner/work/_temp/mpm already exists".
Reproduction workflow:
name: MATLAB
on: [push]
jobs:
my-job:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up MATLAB R2024b
uses: matlab-actions/setup-matlab@v2
with:
release: R2024b
- name: Set up MATLAB R2024a
uses: matlab-actions/setup-matlab@v2
with:
release: R2024a