Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
- Update upload-artifact to v4
- Add git pull before pushing to prevent upload issues
  • Loading branch information
Kampi authored Jun 19, 2024
1 parent ec239f9 commit 13c35fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
kibot -g variant=${{ matrix.device_type }} -d ../production/${{ matrix.device_type }}
- name: Upload Results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.device_type }}
path: |
Expand All @@ -78,4 +78,5 @@ jobs:
git commit -m "Add image from CI/CD action"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
echo https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git pull origin
git push origin ${{ steps.extract_branch.outputs.branch }}

0 comments on commit 13c35fd

Please sign in to comment.