fix: build fail due to feature name mismatch (#2) #2
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: Release | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Publish Feature | |
| uses: devcontainers/action@v1 | |
| with: | |
| base-path-to-features: ./src | |
| publish-features: true | |
| features-namespace: alertbox/denoland | |
| generate-docs: true | |
| disable-repo-tagging: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create PR for Docs | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| set -e | |
| # Configure git and Push updates | |
| git config --global user.email github-actions@github.com | |
| git config --global user.name github-actions | |
| git config pull.rebase false | |
| branch="automated-documentation-update-$GITHUB_RUN_ID" | |
| git checkout -b "$branch" | |
| # Add / update and commit | |
| git add */**/README.md | |
| git commit -m 'docs: recreate feature README.md [skip ci]' || export NO_UPDATES=true | |
| # Push | |
| if [ "$NO_UPDATES" != "true" ]; then | |
| message='docs: recreate feature README.md' | |
| description='this changeset is auto-generated via github workflow.' | |
| git push origin "$branch" | |
| gh pr create --title "$message" --body "$description" | |
| fi |