-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 806 Bytes
/
main.yml
File metadata and controls
34 lines (31 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Unzip
on:
workflow_dispatch:
push:
paths:
- '**/*.zip'
permissions:
contents: write
jobs:
unzip:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Unzip the script.
run: |
ZIP_FILE=$(find . -name "*.zip" -print -quit)
if [ -n "$ZIP_FILE" ]; then
echo "Unzipping $ZIP_FILE"
7z x "$ZIP_FILE" -o. -aoa
rm "$ZIP_FILE"
else
echo "No zip file found."
fi
- name: Commit to repo.
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Unzipped files" || true
git push