mirror of
https://github.com/vastsa/FileCodeBox.git
synced 2026-11-20 13:29:56 +08:00
Bumps [googleapis/release-please-action](https://github.com/googleapis/release-please-action) from 4 to 5. - [Release notes](https://github.com/googleapis/release-please-action/releases) - [Changelog](https://github.com/googleapis/release-please-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/googleapis/release-please-action/compare/v4...v5) --- updated-dependencies: - dependency-name: googleapis/release-please-action dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
name: Create release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
actions: write
|
|
contents: write
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
concurrency:
|
|
group: release-${{ github.ref }}
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
release-please:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Create or update release
|
|
id: release
|
|
uses: googleapis/release-please-action@v5
|
|
with:
|
|
config-file: release-please-config.json
|
|
manifest-file: .release-please-manifest.json
|
|
|
|
- name: Merge release pull request
|
|
if: ${{ steps.release.outputs.prs_created == 'true' }}
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
GH_REPO: ${{ github.repository }}
|
|
RELEASE_PR_JSON: ${{ steps.release.outputs.pr }}
|
|
run: |
|
|
RELEASE_PR="$(jq -r '.number' <<< "$RELEASE_PR_JSON")"
|
|
for attempt in {1..120}; do
|
|
if gh pr merge "$RELEASE_PR" --squash --delete-branch; then
|
|
break
|
|
fi
|
|
if [[ "$attempt" -eq 120 ]]; then
|
|
echo "Timed out waiting for release PR #$RELEASE_PR to merge" >&2
|
|
exit 1
|
|
fi
|
|
sleep 10
|
|
done
|
|
gh workflow run release.yml --ref master
|
|
|
|
- name: Publish release image
|
|
if: ${{ steps.release.outputs.release_created == 'true' }}
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
GH_REPO: ${{ github.repository }}
|
|
RELEASE_TAG: ${{ steps.release.outputs.tag_name }}
|
|
run: gh workflow run docker-image.yml --ref master -f release_tag="$RELEASE_TAG"
|