Add retry limit to the connection pilot (#5098) #39
This file contains 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 Summary - Production | |
on: | |
push: | |
branches: | |
- production | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
tag-release: | |
name: Tag Release | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
outputs: | |
id: ${{ steps.id-generator.outputs.id }} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@v2 | |
with: | |
egress-policy: audit | |
- name: Check out source code | |
uses: actions/[email protected] | |
- name: Retrieve tags | |
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
- name: Get tag name | |
id: id-generator | |
run: | | |
current_date=$(date '+v%Y%m%d.') | |
minor_version=0 | |
tag=$(git tag -l "${current_date}*" --sort=-version:refname | head -n 1) | |
if [ -n "${tag}" ]; then | |
minor_version=$(echo "${tag}" | awk -F. '{print $2+1}') | |
fi | |
echo "::set-output name=id::${current_date}${minor_version}" | |
- name: Tag release | |
run: git tag ${{ steps.id-generator.outputs.id }} | |
- name: Push tags | |
run: git push --tags | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: softprops/[email protected] | |
with: | |
generate_release_notes: true | |
tag_name: ${{ steps.id-generator.outputs.id }} | |
execute: | |
needs: tag-release | |
name: Run Summary Generator | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Setup PHP | |
uses: shivammathur/[email protected] | |
with: | |
php-version: '7.4' | |
- name: Install | |
uses: ramsey/[email protected] | |
- name: Execute | |
env: | |
CHANGELOG_POST_TOKEN: ${{ secrets.CHANGELOG_BEARER_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
PROJECT_USERNAME: Automattic | |
PROJECT_REPONAME: vip-go-mu-plugins | |
BRANCH: ${{ github.ref_name }} | |
TAG_RELEASE: ${{ needs.tag-release.outputs.id }} | |
run: | | |
php ./ci/changelog-summary.php \ | |
--wp-endpoint=https://public-api.wordpress.com/wp/v2/sites/wpvipchangelog.wordpress.com/posts \ | |
--wp-status=draft \ | |
--debug |