Skip to content

Rebuild latest image version #431

Rebuild latest image version

Rebuild latest image version #431

name: Rebuild latest image version
on:
schedule:
- cron: 30 8 * * *
workflow_dispatch:
jobs:
rebuild:
name: Rebuild latest image version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get latest version
id: get_latest_version
run: |
VERSION=$(cat version)
echo "$VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Trigger Workflow
uses: actions/github-script@v7
with:
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'build.yml',
ref: "${{ steps.get_latest_version.outputs.version }}",
})