Record new Polkadot release version #62
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: Create Upgrade Issue for New Polkadot Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- ci/latest-polkadot-full-release | |
paths: | |
- .github/.latest-polkadot-full-release.txt | |
permissions: | |
issues: write | |
env: | |
RELEASE_PAGE_PREFIX_URL: https://github.com/paritytech/polkadot-sdk/releases | |
RELEASE_TRACK_FILENAME: .github/.latest-polkadot-full-release.txt | |
jobs: | |
create-issue: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Out Repo | |
uses: actions/checkout@v4 | |
- name: Set Env Vars | |
run: | | |
release_version=$(cat ${{env.RELEASE_TRACK_FILENAME}}) | |
echo "NEW_POLKADOT_RELEASE_VERSION=$release_version" >> $GITHUB_ENV | |
- name: Create GitHub Issue | |
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 | |
# Check if release starts with p | |
if: ${{ startsWith(env.NEW_POLKADOT_RELEASE_VERSION, 'p') }} | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
with: | |
filename: .github/issues/new-polkadot-release.template.md |