From 4c08f31cdfed2b50050aaf275067fd590f17bd86 Mon Sep 17 00:00:00 2001 From: Giacomo Sanchietti Date: Wed, 17 Apr 2024 15:34:54 +0200 Subject: [PATCH] ci: build-image, add package bumper --- .github/workflows/build-image.yml | 7 +++++++ tools/package-bumper | 1 + 2 files changed, 8 insertions(+) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 89903eb24..acb82c9f0 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -40,6 +40,8 @@ jobs: USIGN_PRIV_KEY: ${{ secrets.USIGN_PRIV_KEY }} NETIFYD_ACCESS_TOKEN: ${{ secrets.NETIFYD_ACCESS_TOKEN }} TARGET: ${{ github.event.inputs.target }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} steps: - uses: actions/checkout@v4 with: @@ -130,3 +132,8 @@ jobs: if: ${{ github.ref == 'refs/heads/main' }} run: | tools/issue-comment + - id: bumper + name: Bump ns-packages + if: ${{ github.ref == 'refs/heads/main' }} + run: | + tools/package-bumber diff --git a/tools/package-bumper b/tools/package-bumper index e4feff587..a1fce64ef 100755 --- a/tools/package-bumper +++ b/tools/package-bumper @@ -44,6 +44,7 @@ if [ ${#packages[@]} -gt 0 ]; then echo "Bump ${package_name} from ${cur_release} to ${new_release}" git add ${dir}/Makefile && git commit -m "${package_name}: bump to ${new_release}" git push -f + gh pr create --title "chore: bump ns packages (automatic)" --fill-verbose -B main done else echo "No packages to bump."