From 867f637b95b342e1cb9f1dc3c6cf0ffe727187ce Mon Sep 17 00:00:00 2001 From: bashonly Date: Sun, 11 Feb 2024 17:35:27 +0100 Subject: [PATCH] [cleanup] Build files cleanup - Fix `AUTHORS` file by doing an unshallow checkout - Update triggers for nightly/master release Authored by: bashonly --- .github/workflows/release-master.yml | 2 ++ .github/workflows/release-nightly.yml | 9 ++++++++- .github/workflows/release.yml | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-master.yml b/.github/workflows/release-master.yml index 2430dc5f8..a84547580 100644 --- a/.github/workflows/release-master.yml +++ b/.github/workflows/release-master.yml @@ -8,6 +8,8 @@ on: - "!yt_dlp/version.py" - "bundle/*.py" - "pyproject.toml" + - "Makefile" + - ".github/workflows/build.yml" concurrency: group: release-master permissions: diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index 16d583846..f459a3a17 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -18,7 +18,14 @@ jobs: - name: Check for new commits id: check_for_new_commits run: | - relevant_files=("yt_dlp/*.py" ':!yt_dlp/version.py' "bundle/*.py" "pyproject.toml") + relevant_files=( + "yt_dlp/*.py" + ':!yt_dlp/version.py' + "bundle/*.py" + "pyproject.toml" + "Makefile" + ".github/workflows/build.yml" + ) echo "commit=$(git log --format=%H -1 --since="24 hours ago" -- "${relevant_files[@]}")" | tee "$GITHUB_OUTPUT" release: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1653add4f..eded11a13 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -246,6 +246,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: actions/setup-python@v4 with: python-version: "3.10"