Optimize structural validation for folder data with inline fast-path … #64
This file contains hidden or 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: Generate Changelog | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| changelog: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Ruby 3.1 | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.1 | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install github_changelog_generator | |
| run: | | |
| gem install github_changelog_generator --user-install | |
| GEM_BIN_DIR="$(ruby -e 'puts Gem.user_dir')/bin" | |
| echo "PATH=$GEM_BIN_DIR:$PATH" >> $GITHUB_ENV | |
| - name: Generate changelog | |
| env: | |
| CHANGELOG_GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
| run: | | |
| github_changelog_generator --user "${GITHUB_REPOSITORY_OWNER}" --project "${GITHUB_REPOSITORY#*/}" | |
| - name: Commit and Push Changes | |
| env: | |
| GH_PAT: ${{ secrets.GH_PAT }} | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git add CHANGELOG.md | |
| if ! git diff --cached --quiet; then | |
| git commit -m "docs: update CHANGELOG [automated]" | |
| git push https://x-access-token:${GH_PAT}@github.com/abhimehro/ctrld-sync.git | |
| else | |
| echo "No changes to commit." | |
| fi | |
| # This workflow will automatically generate or update CHANGELOG.md on every push to main or when manually triggered. | |
| # It uses github-changelog-generator to pull PRs, issues, and release notes from GitHub. | |
| # For more customization, see: https://github.com/github-changelog-generator/github-changelog-generator |