在github action中如何解压 zip 文件到当前目录下
在GitHub Action中,可以使用unzip命令解压zip文件到当前目录下。以下是一个示例的工作流文件:
name: Unzip file
on:
push:
branches:
- main
jobs:
unzip:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Unzip file
run: unzip path/to/zipfile.zip
在上面的示例中,unzip命令会将path/to/zipfile.zip文件解压到当前目录下。你可以根据实际情况将路径替换为你的zip文件路径。
原文地址: http://www.cveoy.top/t/topic/idSq 著作权归作者所有。请勿转载和采集!