Fix missing sha-1 info in the tag description

The tag description does not contain the OpenWRT commit SHA-1,
so later the text was ending with: "Build Commit: ".
This commit is contained in:
Daniel Pawlik
2024-07-29 14:25:23 +02:00
parent 8cf7419810
commit 5e21c9425e
3 changed files with 52 additions and 20 deletions

View File

@@ -4,7 +4,6 @@ name: Build OpenWRT for Xiaomi AX3200
on:
workflow_dispatch:
push:
env:
REMOTE_REPOSITORY: openwrt/openwrt
@@ -14,8 +13,25 @@ env:
ROLE_CONFIG: configs/common/dumb_ap
jobs:
check_commits:
name: Check Commits
runs-on: ubuntu-24.04
outputs:
latest_commit_sha: ${{ steps.get_sha.outputs.latest_commit_sha }}
steps:
- name: Checkout remote repository
uses: actions/checkout@v4
with:
repository: ${{ env.REMOTE_REPOSITORY }}
ref: ${{ env.REMOTE_BRANCH }}
- name: Get the latest commit SHA
id: get_sha
run: echo "latest_commit_sha=$(git rev-parse HEAD)" >> $GITHUB_ENV
build:
name: Build OpenWRT for AX3200
needs: [check_commits]
runs-on: ubuntu-24.04
steps:
- name: Install dependencies

View File

@@ -5,11 +5,8 @@ name: Build OpenWRT for Xiaomi AX3600 NSS build
on:
workflow_dispatch:
push:
env:
# REMOTE_REPOSITORY: openwrt/openwrt
# REMOTE_BRANCH: main
REMOTE_REPOSITORY: qosmio/openwrt-ipq
REMOTE_BRANCH: qualcommax-6.x-nss-wifi
RELEASE_PREFIX: IPQ_8074_ax3600
@@ -18,8 +15,25 @@ env:
NSS_CONFIG: configs/common/nss
jobs:
check_commits:
name: Check Commits
runs-on: ubuntu-24.04
outputs:
latest_commit_sha: ${{ steps.get_sha.outputs.latest_commit_sha }}
steps:
- name: Checkout remote repository
uses: actions/checkout@v4
with:
repository: ${{ env.REMOTE_REPOSITORY }}
ref: ${{ env.REMOTE_BRANCH }}
- name: Get the latest commit SHA
id: get_sha
run: echo "latest_commit_sha=$(git rev-parse HEAD)" >> $GITHUB_ENV
build:
name: Build OpenWRT for AX3600
needs: [check_commits]
runs-on: ubuntu-24.04
steps:
- name: Install dependencies

View File

@@ -4,22 +4,34 @@ name: Build OpenWRT for Banana Pi R4
on:
workflow_dispatch:
push:
env:
REMOTE_REPOSITORY: openwrt/openwrt
REMOTE_BRANCH: main
# REMOTE_REPOSITORY: danpawlik/openwrt
# REMOTE_BRANCH: bpi-r4
# MTK_PPE_ENTRIES_SHIFT_PATCH: 001-32k_ppe.patch
# PREFETCH_PATCH: 002-prefetch.patch
RELEASE_PREFIX: Mediatek_mt7988a_bpi-r4
DEVICE_CONFIG: configs/mediatek/mt7988a/bpi-r4
ROLE_CONFIG: configs/common/main-router
jobs:
check_commits:
name: Check Commits
runs-on: ubuntu-24.04
outputs:
latest_commit_sha: ${{ steps.get_sha.outputs.latest_commit_sha }}
steps:
- name: Checkout remote repository
uses: actions/checkout@v4
with:
repository: ${{ env.REMOTE_REPOSITORY }}
ref: ${{ env.REMOTE_BRANCH }}
- name: Get the latest commit SHA
id: get_sha
run: echo "latest_commit_sha=$(git rev-parse HEAD)" >> $GITHUB_ENV
build:
name: Build OpenWRT for BPI-R4
needs: [check_commits]
runs-on: ubuntu-24.04
steps:
- name: Install dependencies
@@ -37,17 +49,6 @@ jobs:
repository: ${{ env.REMOTE_REPOSITORY }}
ref: ${{ env.REMOTE_BRANCH }}
# - name: Checkout current repository
# uses: actions/checkout@v4
# with:
# path: "custom_repo"
#
# - name: Configure firmware image
# run: |
# cp custom_repo/${{ env.DEVICE_CONFIG }} .config
# cat custom_repo/${{ env.ROLE_CONFIG }} >> .config
# make defconfig
- name: Update and install feeds
run: |
./scripts/feeds update -a
@@ -99,6 +100,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: bpi_r4-images
- name: Extract artifacts
run: tar xf bpi_r4-images.tar