Skip to content

Commit

Permalink
Merge pull request #74 from richardadonnell/1.49
Browse files Browse the repository at this point in the history
Update zip-on-pr.yml
  • Loading branch information
richardadonnell authored Nov 24, 2024
2 parents eec2e5b + 04d44d3 commit 9e4973f
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions .github/workflows/zip-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,15 @@ jobs:
- name: Create a zip file with specific files
run: |
# Create directories
mkdir -p releases
mkdir -p upwork-job-scraper-temp
# Debug: Print current directory and structure
echo "Current directory structure:"
pwd
ls -la
files=(
activityLog.js
background.js
Expand Down Expand Up @@ -92,15 +99,38 @@ jobs:
cd upwork-job-scraper-temp
zip -r "../releases/upwork-job-scraper-${{ env.version_tag }}.zip" .
cd ..
# Debug: Show contents of releases directory
echo "Contents of releases directory:"
ls -la releases/
# Clean up temp directory
rm -rf upwork-job-scraper-temp
echo "✓ Zip file created successfully in releases folder"
- name: Commit and push releases folder
run: |
# Debug: Show git status
echo "Git status before commit:"
git status
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add releases/
git commit -m "Add release zip for version ${{ env.version_tag }}"
git push
# Force add the releases directory
git add -f releases/
# Debug: Show git status after add
echo "Git status after add:"
git status
# Only commit if there are changes
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "Add release zip for version ${{ env.version_tag }}"
git push
fi
- name: Upload zip file as artifact
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 9e4973f

Please sign in to comment.