forked from EmpireProject/Empire
-
-
Notifications
You must be signed in to change notification settings - Fork 584
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Some improvements to the release flow after starkiller submodule removal * use changelog-path * remove todos * combine sponsors changelog for release notes * update docs * update readme * add commit to sponsors changelog
- Loading branch information
Showing
5 changed files
with
40 additions
and
86 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
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: private-main | ||
ref: sponsors-main | ||
submodules: 'recursive' | ||
fetch-depth: 0 | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
|
@@ -37,61 +37,22 @@ jobs: | |
with: | ||
starkiller-version: ${{ env.STARKILLER_TAG }} | ||
app-version: ${{ env.APP_VERSION }} | ||
- name: Get release branch name | ||
run: | | ||
echo "RELEASE_BRANCH=release/$APP_VERSION-sponsors" >> $GITHUB_ENV | ||
- name: Create release branch | ||
run: git checkout -b ${{ env.RELEASE_BRANCH }} | ||
- name: Push new branch | ||
run: git push origin ${{ env.RELEASE_BRANCH }} | ||
- name: Create pull request into ${{ env.TARGET_BRANCH }} | ||
uses: thomaseizinger/[email protected] | ||
changelog-path: CHANGELOG-SPONSORS.md | ||
- name: Update Sponsors Changelog | ||
uses: vinnybod/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | ||
head: ${{ env.RELEASE_BRANCH }} | ||
base: ${{ env.TARGET_BRANCH }} | ||
title: v${{ env.APP_VERSION }} into ${{ env.TARGET_BRANCH }} | ||
reviewers: ${{ github.event.issue.user.login }} | ||
body: | | ||
This PR was automatically generated by the `release-sponsor-kali-start` workflow. | ||
I've updated the version name and code commit: ${{ steps.make-commit.outputs.commit }}. | ||
This PR should be merged with a merge commit, **not a squash commit.** | ||
Merging this PR will trigger a tag and release automatically. | ||
# this is basically copy/paste from the above. | ||
create_kali: | ||
# disable for now. | ||
if: false | ||
# if: ${{ github.repository == 'BC-Security/Empire-Sponsors' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set env vars | ||
tag: v${{ env.APP_VERSION }} | ||
changelogPath: CHANGELOG-SPONSORS.md | ||
skipDiff: false | ||
- name: Commit changelog and manifest files | ||
id: make-commit | ||
run: | | ||
echo "TARGET_BRANCH=kali-main" >> $GITHUB_ENV | ||
echo "STARKILLER_TAG=${{ github.event.inputs.starkillerVersion }}-kali" >> $GITHUB_ENV | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: private-main | ||
submodules: 'recursive' | ||
fetch-depth: 0 | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
- name: Initialize mandatory git config | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email [email protected] | ||
- name: Get app version | ||
run: | | ||
# Get the version from pyproject.toml using sed | ||
echo "APP_VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)" >> $GITHUB_ENV | ||
- name: Update Starkiller Version | ||
if: ${{ github.event.inputs.starkillerVersion }} | ||
uses: ./.github/actions/update-starkiller | ||
with: | ||
starkiller-version: ${{ env.STARKILLER_TAG }} | ||
app-version: ${{ env.APP_VERSION }} | ||
git add -A | ||
git commit --message "Prepare release ${{ env.APP_VERSION }} sponsors" | ||
echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | ||
- name: Get release branch name | ||
run: | | ||
echo "RELEASE_BRANCH=release/$APP_VERSION-kali" >> $GITHUB_ENV | ||
echo "RELEASE_BRANCH=release/$APP_VERSION-sponsors" >> $GITHUB_ENV | ||
- name: Create release branch | ||
run: git checkout -b ${{ env.RELEASE_BRANCH }} | ||
- name: Push 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