Skip to content

Commit

Permalink
add ID and ID_prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
42CrMo4 committed Jan 20, 2022
1 parent 0145e23 commit 6340b21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/generate_output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
sed -i "s!<<hash>>!Git-${COMMIT}!" *.sch
sed -i "s!<<project_name>>!${{ env.project_name }}!" *.sch
sed -i "s!<<date>>!$(date +'%Y-%m-%d')!" *.sch
sed -i "s!<<ID>>!${{ env.ID_prefix }}${{ env.ID }}!" *.sch
- name: Retrieve results from git hash update
uses: actions/upload-artifact@v1
with:
Expand Down Expand Up @@ -159,6 +160,7 @@ jobs:
sed -i "s!<<hash>>!Git-${COMMIT}!" *.kicad_pcb
sed -i "s!<<project_name>>!${{ env.project_name }}!" *.kicad_pcb
sed -i "s!<<date>>!$(date +'%Y-%m-%d')!" *.kicad_pcb
sed -i "s!<<ID>>!${{ env.ID_prefix }}${{ env.ID }}!" *.kicad_pcb
- name: Retrieve results kicad_pcb with the git hash
uses: actions/upload-artifact@v1
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- name: Assign variables from project.properties to Env variable
run: |
cat project.properties >> $GITHUB_ENV
cat project.properties >> $GITHUB_ENV
- name: Update the Schematic with the git hash
run: |
Expand All @@ -41,6 +41,7 @@ jobs:
sed -i "s!<<project_name>>!${{ env.project_name }}!" *.sch
sed -i "s!<<date>>!$(date +'%Y-%m-%d')!" *.sch
sed -i "s!<<version>>!${{ github.ref_name }}!" *.sch
sed -i "s!<<ID>>!${{ env.ID_prefix }}${{ env.ID }}!" *.sch
- name: Update the PCBs with the git hash
run: |
Expand All @@ -50,6 +51,7 @@ jobs:
sed -i "s!<<project_name>>!${{ env.project_name }}!" *.kicad_pcb
sed -i "s!<<date>>!$(date +'%Y-%m-%d')!" *.kicad_pcb
sed -i "s!<<version>>!${{ github.ref_name }}!" *.kicad_pcb
sed -i "s!<<ID>>!${{ env.ID_prefix }}${{ env.ID }}!" *.kicad_pcb
- name: Run Schematic and BOM
run: |
Expand Down

0 comments on commit 6340b21

Please sign in to comment.