From: gap579137 Date: Sun, 18 May 2025 02:51:48 +0000 (-0500) Subject: update tag X-Git-Tag: aggregated-20250519~5 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=e8af4c6246e70a494f577b03ed5fef0af8a6ebda;p=thirdparty%2Fblocklistproject%2Flists.git update tag --- diff --git a/.github/workflows/aggregate.yml b/.github/workflows/aggregate.yml index b6bc5ea..880605a 100644 --- a/.github/workflows/aggregate.yml +++ b/.github/workflows/aggregate.yml @@ -31,6 +31,52 @@ jobs: release: needs: build runs-on: ubuntu-latest + steps: + # 1) Checkout with full history and push rights + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 # so tags and history are available + persist-credentials: true # so we can push + + # 2) Compute YYYYMMDD + - name: Set release date + run: echo "RELEASE_DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV + + # 3) Create & push the tag + - name: Create Git tag + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git tag aggregated-${{ env.RELEASE_DATE }} + git push origin aggregated-${{ env.RELEASE_DATE }} + + # 4) Now GitHub Release will find that tag + - name: Create GitHub Release + id: create_release + uses: actions/create-release@v1 + with: + tag_name: aggregated-${{ env.RELEASE_DATE }} + release_name: Aggregated Lists ${{ env.RELEASE_DATE }} + body: | + Aggregated lists for ${{ env.RELEASE_DATE }}. + draft: false + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + # 5) Upload the three aggregated files + - name: Upload release assets + uses: softprops/action-gh-release@v1 + with: + files: | + releases/aggregated-hosts.txt + releases/aggregated-dnsmasq.conf + releases/aggregated-adblock.txt + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + needs: build + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3