try fix branch name #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create PR on Release | ||
env: | ||
BRANCH_NAME: "task/update-docs-${{ github.run_id }}" | ||
on: | ||
push: | ||
branches: | ||
- "task/59517-release-docs" | ||
release: | ||
types: [published] | ||
permissions: write-all | ||
jobs: | ||
create-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install Quix CLI | ||
run: curl -fsSL https://github.com/quixio/quix-cli/raw/main/install.sh | bash | ||
- name: Run Quix CLI to generate docs | ||
run: quix docs ${{ github.workspace }}/docs/reference | ||
- name: Update CHANGELOG.md | ||
run: | | ||
echo "## $(date +"%Y-%m-%d") - $GITHUB_REF_NAME" >> CHANGELOG.md | ||
echo "Release notes for $GITHUB_REF_NAME" >> CHANGELOG.md | ||
echo "Updated CHANGELOG.md with new release $GITHUB_REF_NAME" | ||
- name: Configure Git | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
- name: Create new branch | ||
run: git checkout -b $BRANCH_NAME | ||
- name: Commit changes | ||
run: | | ||
git add . | ||
git commit -m "Update CHANGELOG and docs for release $GITHUB_REF_NAME" | ||
- name: Push changes | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git | ||
git push origin $BRANCH_NAME | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: Update CHANGELOG and docs for release $GITHUB_REF_NAME | ||
branch: ${{ BRANCH_NAME }} | ||
Check failure on line 62 in .github/workflows/release-docs.yml GitHub Actions / Create PR on ReleaseInvalid workflow file
|
||
title: "Update CHANGELOG and docs for release $GITHUB_REF_NAME" | ||
base: main # Change the base branch to the appropriate one | ||
body: | | ||
This PR updates the CHANGELOG.md file and documentation with information about the new release $GITHUB_REF_NAME. | ||
reviewers: luisquix, emanuel-quix, PatrickMiraP |