Skip to content

Commit

Permalink
WF Add ID to artifact names
Browse files Browse the repository at this point in the history
  • Loading branch information
42CrMo4 committed Apr 22, 2022
1 parent aa3858d commit 55bc7a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/generate_output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ jobs:
- name: Retrieve results from git hash update
uses: actions/upload-artifact@v3
with:
name: ${{ env.project_name }}_Kicad_raw
path: '${{ env.project_name }}.kicad_sch'
name: ${{ env.ID_prefix }}${{ env.ID }}_${{ env.project_name }}_Kicad_raw
path: '${{ env.ID_prefix }}${{ env.ID }}_${{ env.project_name }}.kicad_sch'

- name: Run Schematic and BOM
run: |
Expand All @@ -113,16 +113,16 @@ jobs:
- name: Retrieve results kicad_pcb with the git hash
uses: actions/upload-artifact@v3
with:
name: ${{ env.project_name }}_Kicad_raw
path: '${{ env.project_name }}.kicad_pcb'
name: ${{ env.ID_prefix }}${{ env.ID }}_${{ env.project_name }}_Kicad_raw
path: '${{ env.ID_prefix }}${{ env.ID }}_${{ env.project_name }}.kicad_pcb'
- name: Run PCB stuff
run: |
[ -f *.kicad_pcb ] && kiplot -d Fabrication_temp -s all pcb_top_b pcb_bottom_b #print_front print_back
- name: Renaming Files
run: |
cd Fabrication_temp
for file in *; do mv -v ${file} ${{ env.project_name }}_${file}; done #https://unix.stackexchange.com/a/389516
for file in *; do mv -v ${file} ${{ env.ID_prefix }}${{ env.ID }}_${{ env.project_name }}_${file}; done #https://unix.stackexchange.com/a/389516
# mkdir PCB_Sheet
# mv *Sheet.* PCB_Sheet/
mkdir BoM
Expand All @@ -131,7 +131,7 @@ jobs:
- name: Retrieve results
uses: actions/upload-artifact@v3
with:
name: ${{ env.project_name }}_Output
name: ${{ env.ID_prefix }}${{ env.ID }}_${{ env.project_name }}_Output
path: 'Fabrication_temp'

- name: Run STEP
Expand All @@ -140,5 +140,5 @@ jobs:
- name: Retrieve results
uses: actions/upload-artifact@v3
with:
name: ${{ env.project_name }}_Output_STEP
name: ${{ env.ID_prefix }}${{ env.ID }}_${{ env.project_name }}_Output_STEP
path: 'Fabrication_temp_step'
2 changes: 1 addition & 1 deletion .github/workflows/rc_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
- name: Renaming Files
run: |
cd Fabrication_temp
for file in *; do mv -v ${file} ${{ env.project_name }}_${{ github.ref_name }}_${file}; done #https://unix.stackexchange.com/a/389516
for file in *; do mv -v ${file} ${{ env.ID_prefix }}${{ env.ID }}_${{ env.project_name }}_${{ github.ref_name }}_${file}; done #https://unix.stackexchange.com/a/389516
- uses: vimtor/action-zip@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
- name: Renaming Files
run: |
cd Fabrication_temp
for file in *; do mv -v ${file} ${{ env.project_name }}_${{ github.ref_name }}_${file}; done #https://unix.stackexchange.com/a/389516
for file in *; do mv -v ${file} ${{ env.ID_prefix }}${{ env.ID }}_${{ env.project_name }}_${{ github.ref_name }}_${file}; done #https://unix.stackexchange.com/a/389516
- uses: vimtor/action-zip@v1
with:
Expand Down

0 comments on commit 55bc7a8

Please sign in to comment.