refactor(storage): migrate S3 driver to AWS SDK v2 #3
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: auto changelog | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| changelog: | |
| name: Create Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Delete beta tag | |
| run: git tag -d beta | |
| continue-on-error: true | |
| - name: Verify release token | |
| env: | |
| GH_TOKEN: ${{ secrets.MY_TOKEN }} | |
| TAG_NAME: ${{ github.ref_name }} | |
| run: | | |
| if [ -z "$GH_TOKEN" ]; then | |
| echo "::error::MY_TOKEN is not configured" | |
| exit 1 | |
| fi | |
| curl --fail-with-body --silent --show-error \ | |
| --header "Authorization: Bearer ${GH_TOKEN}" \ | |
| --header "Accept: application/vnd.github+json" \ | |
| --header "X-GitHub-Api-Version: 2022-11-28" \ | |
| "https://api.github.com/repos/${GITHUB_REPOSITORY}/git/ref/tags/${TAG_NAME}" \ | |
| >/dev/null | |
| - name: Create GitHub release | |
| run: npx --yes changelogithub@13.16.1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.MY_TOKEN }} |