mirror of
https://github.com/Bunsly/JobSpy.git
synced 2026-03-05 03:54:31 -08:00
update for artifact with run ID
This commit is contained in:
20
.github/workflows/job_scraper_dynamic.yml
vendored
20
.github/workflows/job_scraper_dynamic.yml
vendored
@@ -30,22 +30,20 @@ jobs:
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Sanitize Email (Preserve Case)
|
||||
id: sanitize
|
||||
- name: Sanitize Email + Create Run ID
|
||||
id: vars
|
||||
run: |
|
||||
raw_email="${{ github.event.inputs.user_email }}"
|
||||
safe_email=$(echo "$raw_email" | sed 's/@/_at_/g; s/\./_/g')
|
||||
safe_email=$(echo "${{ github.event.inputs.user_email }}" | sed 's/@/_at_/g; s/\./_/g')
|
||||
run_id=$(date +%s)
|
||||
echo "safe_email=$safe_email" >> $GITHUB_OUTPUT
|
||||
echo "run_id=$run_id" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Ensure outputs folder exists
|
||||
run: mkdir -p outputs
|
||||
|
||||
- name: Run Job Scraper with Config
|
||||
- name: Run Job Scraper
|
||||
run: |
|
||||
python job_scraper_dynamic.py "${{ github.event.inputs.user_email }}"
|
||||
python job_scraper_dynamic.py "${{ github.event.inputs.user_email }}" "${{ steps.vars.outputs.run_id }}"
|
||||
|
||||
- name: Upload Output Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: jobspy_output_${{ steps.sanitize.outputs.safe_email }}
|
||||
path: outputs/jobspy_output_${{ steps.sanitize.outputs.safe_email }}.csv
|
||||
name: jobspy_output_${{ steps.vars.outputs.safe_email }}_${{ steps.vars.outputs.run_id }}
|
||||
path: outputs/jobspy_output_${{ steps.vars.outputs.safe_email }}_${{ steps.vars.outputs.run_id }}.csv
|
||||
|
||||
Reference in New Issue
Block a user