豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit eba7bac

Browse files
committed
fix(github-actions): do not nest deploy directory in final tmp dir
The github action creates a temporary directory for adding the metadata files. Right now the cp logic is incorrect and nestes the base folder inside it. We can ensure the deploy folder becomes the tmp dir 1:1 by not creating it before copying.
1 parent 4172435 commit eba7bac

File tree

1 file changed

+1
-2
lines changed
  • github-actions/deploy-previews/pack-and-upload-artifact

1 file changed

+1
-2
lines changed

github-actions/deploy-previews/pack-and-upload-artifact/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ runs:
3939
id: copy
4040
shell: bash
4141
run: |
42-
dir="$RUNNER_TEMP/pack-and-upload-tmp-dir"
43-
mkdir -p $dir
42+
dir="$RUNNER_TEMP/pack-and-upload-tmp-dir/"
4443
cp -R "${{inputs.deploy-directory}}" "$dir"
4544
chmod -R u+w "$dir"
4645
echo "deploy-dir=$dir" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)