-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[noissue]
- Loading branch information
Showing
11 changed files
with
68 additions
and
41 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2021.08.26-243-g0b216b2 | ||
2021.08.26-248-g4bfc3e1 |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,6 @@ | |
name: Create New Release Branch | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
name: | ||
description: "Branch name (e.g. 3.14)" | ||
required: true | ||
|
||
env: | ||
RELEASE_WORKFLOW: true | ||
|
@@ -25,11 +21,12 @@ jobs: | |
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
fetch-depth: 0 | ||
path: pulp_rpm | ||
|
||
- uses: actions/setup-python@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
|
||
|
@@ -40,36 +37,43 @@ jobs: | |
echo ::endgroup:: | ||
- name: Setting secrets | ||
working-directory: pulp_rpm | ||
run: python3 .github/workflows/scripts/secrets.py "$SECRETS_CONTEXT" | ||
env: | ||
SECRETS_CONTEXT: ${{ toJson(secrets) }} | ||
|
||
- name: Verify that branch name matches current version string on main branch | ||
- name: Determine new branch name | ||
working-directory: pulp_rpm | ||
run: | | ||
X_Y_VERSION=$(grep version setup.py | sed -rn 's/version="(.*)\.0((a[0-9]+)|(b[0-9]+))?\.dev",/\1/p' | awk '{$1=$1};1') | ||
if [[ "$X_Y_VERSION" != "${{ inputs.name }}" ]] | ||
# Just to be sure... | ||
git checkout main | ||
NEW_BRANCH="$(bump2version --dry-run --list release | sed -Ene 's/^new_version=([[:digit:]]+\.[[:digit:]]+)\..*$/\1/p')" | ||
if [ -z "$NEW_BRANCH" ] | ||
then | ||
echo "Branch name doesn't match the current version string $X_Y_VERSION." | ||
echo Could not determine the new branch name. | ||
exit 1 | ||
fi | ||
echo "NEW_BRANCH=${NEW_BRANCH}" >> "$GITHUB_ENV" | ||
- name: Create ${{ inputs.name }} release branch | ||
- name: Create release branch | ||
working-directory: pulp_rpm | ||
run: | | ||
git checkout -b ${{ inputs.name }} | ||
git push origin ${{ inputs.name }} | ||
git branch "${NEW_BRANCH}" | ||
- name: Bump version on main branch | ||
working-directory: pulp_rpm | ||
run: | | ||
git checkout main | ||
bump2version --no-commit minor | ||
- name: Remove entries from CHANGES directory | ||
working-directory: pulp_rpm | ||
run: | | ||
find CHANGES -type f -regex ".*\.\(bugfix\|doc\|feature\|misc\|deprecation\|removal\)" -exec git rm {} + | ||
- name: Make a PR with version bump and without CHANGES/* | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
path: pulp_rpm | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
committer: pulpbot <[email protected]> | ||
author: pulpbot <[email protected]> | ||
|
@@ -81,3 +85,8 @@ jobs: | |
Bump minor version | ||
[noissue] | ||
delete-branch: true | ||
|
||
- name: Push release branch | ||
working-directory: pulp_rpm | ||
run: | | ||
git push origin "${NEW_BRANCH}" |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# This config represents the latest values used when running the plugin-template. Any settings that | ||
# were not present before running plugin-template have been added with their default values. | ||
|
||
# generated with [email protected]241-g9cfc63e | ||
# generated with [email protected]248-g4bfc3e1 | ||
|
||
additional_repos: [] | ||
api_root: /pulp/ | ||
|
@@ -47,6 +47,10 @@ plugin_snake: pulp_rpm | |
post_job_template: null | ||
pre_job_template: null | ||
publish_docs_to_pulpprojectdotorg: true | ||
pulp_env: {} | ||
pulp_env_azure: {} | ||
pulp_env_gcp: {} | ||
pulp_env_s3: {} | ||
pulp_scheme: https | ||
pulp_settings: | ||
allowed_content_checksums: | ||
|
@@ -63,7 +67,6 @@ pulp_settings: | |
pulp_settings_azure: null | ||
pulp_settings_gcp: null | ||
pulp_settings_s3: null | ||
pulp_settings_stream: null | ||
pulpprojectdotorg_key_id: aa499d7938ed | ||
pydocstyle: true | ||
pypi_username: pulp | ||
|