mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-06 17:04:09 +02:00
Switch to $GITHUB_ENV since set-env has been deprecated Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
name: "Draft new release"
|
|
|
|
on:
|
|
milestone:
|
|
types: [closed]
|
|
|
|
jobs:
|
|
draft-new-release:
|
|
name: "Draft a new release"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
ref: 'release'
|
|
- name: Extract version from milestone
|
|
run: |
|
|
VERSION="${{ github.event.milestone.title }}"
|
|
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
|
|
|
|
- name: Create release branch
|
|
run: git checkout -b release-${{ env.RELEASE_VERSION }}
|
|
|
|
- name: Update changelog
|
|
uses: thomaseizinger/keep-a-changelog-new-release@1.1.0
|
|
with:
|
|
version: v${{ env.RELEASE_VERSION }}
|
|
|
|
- name: Initialize git config and commit changes
|
|
run: |
|
|
git config user.name "GitHub Actions"
|
|
git config user.email noreply@github.com
|
|
git commit "Prepare release $RELEASE_VERSION"
|
|
|
|
- name: Create Pull Request
|
|
uses: repo-sync/pull-request@v2
|
|
with:
|
|
source_branch: release-${{ env.RELEASE_VERSION }}
|
|
destination_branch: release
|
|
pr_title: Release ${{ env.RELEASE_VERSION }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|