-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pin+update Github Actions, add dependabot config for action updates #568
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# See also: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
groups: | ||
github-actions: | ||
patterns: | ||
- '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
target: [ "pi0", "pi2", "pi02w", "pi4" ] | ||
steps: | ||
- name: checkout seedsigner-os | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
with: | ||
repository: "seedsigner/seedsigner-os" | ||
# use the os-ref input parameter in case of workflow_dispatch or default to main in case of cron triggers | ||
|
@@ -42,7 +42,7 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: checkout source | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
with: | ||
# ref defaults to repo default-branch=dev (cron) or SHA of event (workflow_dispatch) | ||
path: "seedsigner-os/opt/rootfs-overlay/opt" | ||
|
@@ -78,7 +78,7 @@ jobs: | |
ls -la src | ||
- name: restore build cache | ||
uses: actions/cache@v3 | ||
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1 | ||
# Caching reduces the build time to ~50% (currently: ~30 mins instead of ~1 hour, | ||
# while consuming ~850 MB storage space). | ||
with: | ||
|
@@ -113,9 +113,9 @@ jobs: | |
ls -la seedsigner-os/images | ||
- name: upload images | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
with: | ||
name: seedsigner_os_images | ||
name: seedsigner_os_images_${{ matrix.target }} | ||
path: "seedsigner-os/images/*.img" | ||
if-no-files-found: error | ||
# maximum 90 days retention | ||
|
@@ -127,9 +127,8 @@ jobs: | |
needs: build | ||
steps: | ||
- name: download images | ||
uses: actions/download-artifact@v3 | ||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7 | ||
with: | ||
name: seedsigner_os_images | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Required to download all differently named uploads from the same workflow run. |
||
path: images | ||
|
||
- name: list images | ||
|
@@ -145,12 +144,12 @@ jobs: | |
- name: write sha256sum | ||
run: | | ||
cd images | ||
sha256sum *.img > seedsigner_os.${{ env.source_hash }}.sha256 | ||
find . -name "*.img" -print0 | xargs -0 cat | sha256sum | tee seedsigner_os.${{ env.source_hash }}.sha256 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Required as all downloads end up in different subfolders |
||
- name: upload checksums | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
with: | ||
name: seedsigner_os_images | ||
name: seedsigner_os_images_sha256 | ||
path: "images/*.sha256" | ||
if-no-files-found: error | ||
# maximum 90 days retention | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
due to API change, each upload from the matrix (Python 3.10, 3.12) requires a different name