使用github action来重命名文件

Show activity on this post.

You can use mv from Linux command:

1
mv oldfile.txt newfile.txt 

Here’s how it will look in the workflow (YML) file:

1
2
3
4
5
6
7
8
9
10
11
12
13
jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Rename file
run: mv oldfile.txt newfile.txt

- name: Delete file
run: rm -f file.txt

se-share-sheet#willShow s-popover:shown->se-share-sheet#didShow”>ShareShare a link to this answer (Includes your user id)Copy linkCC BY-SA 4.0 Edit Follow Follow this answer to receive notifications answered Dec 29, 2021 at 4:58 user avatar Anggrayudi HAnggrayudi H 14.4k1111 gold badges5050 silver badges8080 bronze badges 2

Add a comment  |