Update main.yml #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Extract ZIP File | |
| on: | |
| push: | |
| branches: | |
| - main # Or your branch name | |
| jobs: | |
| extract: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Extract ZIP File | |
| run: unzip onlinevotingsystem.zip -d extracted_folder | |
| - name: Commit Extracted Files | |
| run: | | |
| git config --global user.name 'GitHub Actions' | |
| git config --global user.email 'actions@github.com' | |
| git add extracted_folder/ | |
| git commit -m "Extracted ZIP contents" | |
| git push |