Skip to content

Commit 7f87036

Browse files
authored
Create main.yml
1 parent 83aeecb commit 7f87036

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Extract ZIP File
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Or your branch name
7+
8+
jobs:
9+
extract:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
15+
- name: Extract ZIP File
16+
run: unzip filename.zip -d extracted_folder
17+
18+
- name: Commit Extracted Files
19+
run: |
20+
git config --global user.name 'GitHub Actions'
21+
git config --global user.email 'actions@github.com'
22+
git add extracted_folder/
23+
git commit -m "Extracted ZIP contents"
24+
git push

0 commit comments

Comments
 (0)