Thanks to visit codestin.com
Credit goes to github.com

Skip to content

add a manually run build workflow #1486

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

Merged
merged 3 commits into from
May 29, 2025
Merged
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
51 changes: 51 additions & 0 deletions .github/workflows/dependabot-build-dispatched.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Compile dependabot updates (dispatched)

on:
workflow_dispatch:
inputs:
ref:
description: 'Branch or tag to build'
required: true
update-container-manifest:
description: 'Whether to update the container manifest'
required: false
default: false
type: boolean

permissions:
pull-requests: write
contents: write

jobs:
build-dependabot-changes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Use the ref provided by the workflow_dispatch input
ref: ${{ github.event.inputs.ref }}

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'npm'

- run: npm clean-install

- name: Rebuild docker/containers.json
if: github.event.inputs.update-container-manifest == 'true'
run: |
npm run update-container-manifest
git add docker/containers.json

- name: Rebuild the dist/ directory
run: npm run package

- name: Check in any change to dist/
run: |
git add dist/
# Specifying the full email allows the avatar to show up: https://github.com/orgs/community/discussions/26560
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -m "[dependabot skip] Update dist/ with build changes" || exit 0
git push
Loading