Skip to content

Commit

Permalink
fix miss dts copy, add published release
Browse files Browse the repository at this point in the history
  • Loading branch information
wjz304 committed Apr 16, 2023
1 parent c7eb2af commit f10fbe4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
name: Build image
#
# Copyright (C) 2022 Ing <https://github.com/wjz304>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#

name: Build arpl

on:
push:
branches:
- main
tags:
- v*

release:
types: [published]

workflow_dispatch:
inputs:
version:
Expand Down Expand Up @@ -78,7 +89,7 @@ jobs:
run: |
# Calculate version
VERSION=""
if [ ${{ github.event_name }} == 'push' -a ${{ github.ref_type }} == 'tag' ]; then
if [[ "${{ github.event_name }}" =~ ^(push|release)$ && "${{ github.ref_type }}" == 'tag' ]]; then
VERSION="${{ github.ref_name }}"
elif [ -n "${{ inputs.version }}" ]; then
if [ "`echo ${{ inputs.version }} | cut -d '.' -f 1,2`" = "`date +'%y.%-m'`" ]; then
Expand Down
1 change: 1 addition & 0 deletions files/board/arpl/overlayfs/opt/arpl/ramdisk-patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ installAddon eudev
echo "/addons/eudev.sh \${1} " >> "${RAMDISK_PATH}/addons/addons.sh" 2>"${LOG_FILE}" || dieLog
installAddon disks
echo "/addons/disks.sh \${1} ${DT} ${UNIQUE}" >> "${RAMDISK_PATH}/addons/addons.sh" 2>"${LOG_FILE}" || dieLog
[ -f "/mnt/p1/model.dts" ] && cp "/mnt/p1/model.dts" "${RAMDISK_PATH}/addons/model.dts"
installAddon wol
echo "/addons/wol.sh \${1} " >> "${RAMDISK_PATH}/addons/addons.sh" 2>"${LOG_FILE}" || dieLog
# User addons
Expand Down

0 comments on commit f10fbe4

Please sign in to comment.