feat: ✨ 增加排除,更新相关过滤逻辑 #13
Workflow file for this run
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: changelog | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| changelog: | |
| name: Create Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.ACTION_TOKEN }} | |
| - run: npx changelogithub | |
| env: | |
| GITHUB_TOKEN: ${{secrets.ACTION_TOKEN}} | |
| - name: Merge dev to master branch | |
| run: | | |
| git config --global user.name 'GitHub Actions' | |
| git config --global user.email '[email protected]' | |
| if ! git show-ref --verify --quiet refs/heads/master; then | |
| git checkout -b master | |
| else | |
| git checkout master | |
| fi | |
| git fetch origin dev | |
| git merge origin/dev | |
| git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} | |
| git push origin master --force | |
| env: | |
| GITHUB_TOKEN: ${{secrets.ACTION_TOKEN}} |