Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ The action reads a few env variables:
* `KEY_BUILD` can be a private Signify/`usign` key to sign the packages (ipk) feed.
* `PRIVATE_KEY` can be a private key to sign the packages (apk) feed.
* `NO_DEFAULT_FEEDS` disable adding the default SDK feeds
* `DEFAULT_FEEDS` relpace default feeds if `NO_DEFAULT_FEEDS` is disabled, where `|` are replaced by white spaces.
* `NO_REFRESH_CHECK` disable check if patches need a refresh.
* `NO_SHFMT_CHECK` disable check if init files are formated
* `PACKAGES` (Optional) specify the list of packages (space separated) to be built
Expand Down
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ runs:
--env KEY_BUILD \
--env PRIVATE_KEY \
--env NO_DEFAULT_FEEDS \
--env DEFAULT_FEEDS \
--env NO_REFRESH_CHECK \
--env NO_SHFMT_CHECK \
--env PACKAGES \
Expand Down
8 changes: 8 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ if [ -z "$NO_DEFAULT_FEEDS" ]; then
-e 's,https://git.openwrt.org/openwrt/,https://github.com/openwrt/,' \
-e 's,https://git.openwrt.org/project/,https://github.com/openwrt/,' \
feeds.conf.default > feeds.conf

# Replace complete feed URL when feed name matches (feedname|url^commit format)
for DEFAULT_FEED in $DEFAULT_FEEDS; do
feed_name=$(echo "$DEFAULT_FEED" | cut -d'|' -f1)
feed_url=$(echo "$DEFAULT_FEED" | cut -d'|' -f2)
[ -n "$feed_name" ] && [ -n "$feed_url" ] || continue
sed -i "s#^\(\([^[:space:]]\+\)[[:space:]]\+\)\(${feed_name}[[:space:]]\+\)\([^[:space:]]\+\)\$#\1\3${feed_url}#" feeds.conf
done
fi

echo "src-link $FEEDNAME /feed/" >> feeds.conf
Expand Down
Loading