Skip to content

Simplified workflows #8

Simplified workflows

Simplified workflows #8

Workflow file for this run

name: Build installer
"on":
push:
jobs:
build-installer:
runs-on: ubuntu-latest
name: Build install.sh
permissions: write-all
steps:
- name: Check out code for the container build
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update install.sh if needed
id: update-installer
run: |
if ! git --no-pager diff --name-only --quiet --diff-filter=AM ${{ github.event.before }} ${{ github.event.after }} -- .build/install.j2.sh .github/workflows/mkinstaller.yml; then
python3 -m pip install jinja-cli
jinja -D j2_hyakvnc_repo_url 'https://github.com/${{ github.repository }}' .build/install.j2.sh -o install.sh
git config --local user.email "${{ github.event.sender.id }}+${{ github.event.sender.login }}@users.noreply.github.com"
git config --local user.name ${{ github.event.sender.login }}
git add install.sh
git commit -am "Update install.sh"
git push
fi