🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Python aiai-scrapingautomationcrawlercrawlingcrawling-pythondatadata-extractionmcpmcp-serverplaywrightpythonscrapingselectorsstealthweb-scraperweb-scrapingweb-scraping-pythonwebscrapingxpath
build: fixing release workflow
Karim shoaired89161cd9e3
diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.ymlindex c6a6699..df00bd9 100644--- a/.github/workflows/auto-release.yml+++ b/.github/workflows/auto-release.yml@@ -1,4 +1,5 @@name: Create Release+# Creates a GitHub release when a PR is merged to main, using the PR title as the version (must start with 'v') and PR body as release notes.on:pull_request:@@ -17,23 +18,23 @@ jobs:with:fetch-depth: 0- - name: Get PR information- id: pr_data+ - name: Get PR title+ id: pr_title+ run: echo "title=${{ github.event.pull_request.title }}" >> $GITHUB_OUTPUT++ - name: Save PR body to filerun: |- echo "title=${{ github.event.pull_request.title }}" >> $GITHUB_OUTPUT- echo "body<<EOF" >> $GITHUB_OUTPUT- echo "${{ github.event.pull_request.body }}" >> $GITHUB_OUTPUT- echo "EOF" >> $GITHUB_OUTPUT+ echo '${{ github.event.pull_request.body }}' > pr_body.txt- name: Extract versionid: extract_versionrun: |- PR_TITLE="${{ steps.pr_data.outputs.title }}"+ PR_TITLE="${{ steps.pr_title.outputs.title }}"if [[ $PR_TITLE =~ ^v ]]; thenecho "version=$PR_TITLE" >> $GITHUB_OUTPUTecho "Valid version format found in PR title: $PR_TITLE"else- echo "Error: PR title must start with 'v' to make a new release"+ echo "Error: PR title '$PR_TITLE' must start with 'v' (e.g., 'v1.0.0') to create a release."exit 1fi@@ -42,7 +43,7 @@ jobs:with:tag_name: ${{ steps.extract_version.outputs.version }}name: Release ${{ steps.extract_version.outputs.version }}- body: ${{ steps.pr_data.outputs.body }}+ body_path: pr_body.txtdraft: falseprerelease: falseenv: