Skip to content

Commit

Permalink
create new GH issue for new polkadot release
Browse files Browse the repository at this point in the history
  • Loading branch information
demisx committed Feb 10, 2023
1 parent 5a31ef4 commit 0cb9772
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 4 deletions.
24 changes: 24 additions & 0 deletions .github/issues/new-polkadot-release-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Upgrade to Polkadot Release {{env.NEW_POLKADOT_RELEASE_VERSION}}
labels: change/major
---

The Parity team has published new version of Polkadot: `{{env.NEW_POLKADOT_RELEASE_VERSION}}`

See {{env.RELEASE_PAGE_PREFIX_URL}}/{{env.NEW_POLKADOT_RELEASE_VERSION}}

## Upgrade Priority

See [Polkadot Release Page]({{env.RELEASE_PAGE_PREFIX_URL}}/{{env.NEW_POLKADOT_RELEASE_VERSION}})

## Host Functions

See [Polkadot Release Page]({{env.RELEASE_PAGE_PREFIX_URL}}/{{env.NEW_POLKADOT_RELEASE_VERSION}})

## Database Migrations

See [Polkadot Release Page]({{env.RELEASE_PAGE_PREFIX_URL}}/{{env.NEW_POLKADOT_RELEASE_VERSION}})

## Runtime Migrations

See [Polkadot Release Page]({{env.RELEASE_PAGE_PREFIX_URL}}/{{env.NEW_POLKADOT_RELEASE_VERSION}})
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: Track Polkadot Releases
name: Check Polkadot Releases
on:
schedule:
- cron: "0 18 * * *" # midnight
- cron: "0 0 * * *" # midnight
env:
REPO_URL: https://api.github.com/repos/paritytech/polkadot
RELEASE_TRACK_FILENAME: .github/workflows/.polkadot-latest-full-release.txt
jobs:
record-polkadot-latest-release-version:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Timestamp
run: date
- name: Check Out Repo
uses: actions/checkout@v3
with:
ref: main
token: ${{secrets.FREQUENCY_REPO_TRACK_POLKADOT_RELEASES}}
Expand All @@ -28,7 +31,6 @@ jobs:
- name: Check for Modified Files
id: git-check
run: |
set -x
modified=$([ -z "`git status --porcelain`" ] && echo "false" || echo "true")
echo "repo_modified=$modified" >> $GITHUB_OUTPUT
- name: Commit Latest Release Version
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/create-polkadot-release-upgrade-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Create Upgrade Issue for New Polkadot Release
on:
push:
branches:
- main
paths:
- .github/workflows/.polkadot-latest-full-release.txt
env:
RELEASE_PAGE_PREFIX_URL: https://github.com/paritytech/polkadot/releases/tag
RELEASE_TRACK_FILENAME: .github/workflows/.polkadot-latest-full-release.txt
jobs:
create-issue:
runs-on: ubuntu-20.04
steps:
- name: Check Out Repo
uses: actions/checkout@v3
- 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@e27dddc79c92bc6e4562f268fffa5ed752639abd
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
filename: .github/issues/new-polkadot-release-template.md

0 comments on commit 0cb9772

Please sign in to comment.