CLOUDP-290847: Remove cert hash annotations #467
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: Preview Release Notes | |
on: | |
push: | |
branches: | |
- master | |
- release-* | |
pull_request: | |
branches: | |
- master | |
- release-* | |
jobs: | |
preview_release_notes: | |
name: Preview Release Notes | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Setup host | |
uses: ./.github/actions/setup-ubuntu-host | |
with: | |
python-version: '${{ vars.PYTHON_VERSION }}' | |
- name: Generate Release Notes | |
id: generate_release_notes | |
run: python -m scripts.release.release_notes -s $INITIAL_COMMIT_SHA -v $INITIAL_VERSION -o release_notes_tmp.md | |
env: | |
# We can not use environments set via GitHub UI because they will | |
# not be available in the pull requests running from forks. | |
INITIAL_COMMIT_SHA: 9ed5f98fc70c5b3442f633d2393265fb8a2aba0c | |
INITIAL_VERSION: 1.3.0 | |
- name: Add disclaimer to release notes preview | |
run: | | |
echo -e "_:warning: (this preview might not be accurate if the PR is not rebased on current master branch)_\n" > release_notes_preview.md | |
cat release_notes_tmp.md >> release_notes_preview.md | |
- name: Summarize results | |
run: cat release_notes_preview.md >> $GITHUB_STEP_SUMMARY | |
- name: Update PR comment | |
# If the PR is from a fork, we cannot update the comment using read only permissions | |
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | |
run: gh issue comment $ISSUE --edit-last --create-if-none --body-file release_notes_preview.md | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ISSUE: ${{ github.event.pull_request.html_url }} |