mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-25 17:00:26 +00:00
Bumps the dependencies group with 1 update: [actions/checkout](https://github.com/actions/checkout). - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major dependency-group: dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
name: Nightly
|
|
on:
|
|
schedule:
|
|
- cron: '45 8 * * *'
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag_name:
|
|
description: 'Tag name to trigger the release'
|
|
required: false
|
|
default: 'nightly'
|
|
|
|
jobs:
|
|
trigger:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.NIGHTLY_BUILD_TOKEN }}
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
run: |
|
|
gh release delete ${{ github.event.inputs.tag_name }} --yes --cleanup-tag || true
|
|
git tag -d ${{ github.event.inputs.tag_name }} || true
|
|
gh release create ${{ github.event.inputs.tag_name }} --title ${{ github.event.inputs.tag_name }} --generate-notes --prerelease
|
|
|
|
- if: ${{ github.event_name == 'schedule' }}
|
|
run: |
|
|
if [[ -z $(git tag -l nightly) ]]; then
|
|
gh release create nightly --title nightly --generate-notes --prerelease
|
|
elif [[ $(git diff nightly --name-only -B -M -C) ]]; then
|
|
gh release delete nightly --yes --cleanup-tag || true
|
|
git tag -d nightly || true
|
|
gh release create nightly --title nightly --generate-notes --prerelease
|
|
fi
|