Skip to content

Commit

Permalink
action to zip user scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
peichins committed Mar 21, 2024
1 parent 898c8f0 commit b49f989
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/zip_use_scripts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Zip and Commit Files

on:
push:
paths:
- 'scripts/**'

jobs:
zip-and-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for all tags and branches

- name: Zip ps1 Files
run: |
zip -r scripts/powershell.zip scripts/embed.ps1 scripts/classify.ps1
- name: Zip sh Files
run: |
zip -r scripts/bash.zip scripts/embed.sh scripts/classify.sh
- name: Commit and Push
run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git add scripts/powershell.zip
git add scripts/bash.zip
git commit -m "Update archive.zip" || echo "No changes to commit"
git push
8 changes: 4 additions & 4 deletions scripts/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Go to https://www.docker.com/get-started/ and install Docker for your computer i
# Step 2. Embed audio

1. Download the embed script from this directory
- Windows: [embed.ps1](https://raw.githubusercontent.com/QutEcoacoustics/perch-runner/blob/docker-launch-scripts-and-tests/scripts/embed.ps1)
- Linux / x86 Mac: [embed.sh](https://raw.githubusercontent.com/QutEcoacoustics/perch-runner/blob/docker-launch-scripts-and-tests/scripts/embed.sh)
- Windows: [embed.ps1](https://raw.githubusercontent.com/QutEcoacoustics/perch-runner/docker-launch-scripts-and-tests/scripts/embed.ps1)
- Linux / x86 Mac: [embed.sh](https://raw.githubusercontent.com/QutEcoacoustics/perch-runner/docker-launch-scripts-and-tests/scripts/embed.sh)
2. Open a terminal window
2. Change directory to this scripts directory
3. Run the following command:
Expand All @@ -21,8 +21,8 @@ Notes
# Step 3. Classify embeddings

1. Download the classify script from this directory
- Windows: [classify.ps1](https://raw.githubusercontent.com/QutEcoacoustics/perch-runner/blob/docker-launch-scripts-and-tests/scripts/classify.ps1)
- Linux / x86 Mac: [classify.sh](https://raw.githubusercontent.com/QutEcoacoustics/perch-runner/blob/docker-launch-scripts-and-tests/scripts/classify.sh)
- Windows: [classify.ps1](https://raw.githubusercontent.com/QutEcoacoustics/perch-runner/docker-launch-scripts-and-tests/scripts/classify.ps1)
- Linux / x86 Mac: [classify.sh](https://raw.githubusercontent.com/QutEcoacoustics/perch-runner/docker-launch-scripts-and-tests/scripts/classify.sh)
2. Open a terminal window
2. Change directory to this scripts directory
3. Run the following command:
Expand Down

0 comments on commit b49f989

Please sign in to comment.