Skip to content

Commit

Permalink
Temp: Test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
makubacki committed Nov 14, 2024
1 parent 921baec commit 441e1ec
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 725 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/ReleaseDrafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,26 @@ jobs:
run: |
fileContent=$(cat "${FILE_PATH}")
latestMuReleaseBranch=$(echo "$fileContent" | grep -oP '(?<=latest_mu_release_branch = ").*(?=")')
latestMuDevBranch=$(echo "$latestMuReleaseBranch" | sed 's/release/dev/')
previousMuReleaseBranch=$(echo "$fileContent" | grep -oP '(?<=previous_mu_release_branch = ").*(?=")')
echo "latest_mu_branch=${latestMuReleaseBranch}" >> $GITHUB_ENV
echo "latest_mu_branch_full=refs/heads/${latestMuReleaseBranch}" >> $GITHUB_ENV
echo "previous_mu_branch=${previousMuReleaseBranch}" >> $GITHUB_ENV
echo "previous_mu_branch_full=refs/heads/${previousMuReleaseBranch}" >> $GITHUB_ENV
- name: Build a ${{ env.latest_mu_branch }} Draft
if: ${{ startsWith(github.ref, env.latest_mu_branch_full) }}
previousMuDevBranch=$(echo "$previousMuReleaseBranch" | sed 's/release/dev/')
echo "latest_mu_release_branch=${latestMuReleaseBranch}" >> $GITHUB_ENV
echo "latest_mu_dev_branch_full=refs/heads/${latestMuDevBranch}" >> $GITHUB_ENV
echo "latest_mu_release_branch_full=refs/heads/${latestMuReleaseBranch}" >> $GITHUB_ENV
echo "previous_mu_release_branch=${previousMuReleaseBranch}" >> $GITHUB_ENV
echo "previous_mu_dev_branch_full=refs/heads/${previousMuDevBranch}" >> $GITHUB_ENV
echo "previous_mu_release_branch_full=refs/heads/${previousMuReleaseBranch}" >> $GITHUB_ENV
- name: Build a ${{ env.latest_mu_release_branch }} Draft
if: ${{ startsWith(github.ref, env.latest_mu_release_branch_full) || startsWith(github.ref, env.latest_mu_dev_branch_full) }}
id: update_draft_n
uses: release-drafter/[email protected]
with:
# Note: Path is relative to .github/
config-name: release-draft-config-n.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build a ${{ env.previous_mu_branch }} Draft
if: ${{ startsWith(github.ref, env.previous_mu_branch_full) }}
- name: Build a ${{ env.previous_mu_release_branch }} Draft
if: ${{ startsWith(github.ref, env.previous_mu_release_branch_full) || startsWith(github.ref, env.previous_mu_dev_branch_full) }}
id: update_draft_n_1
uses: release-drafter/[email protected]
with:
Expand All @@ -92,7 +96,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build the New Release Draft
if: ${{ !startsWith(github.ref, 'refs/heads/release') }}
if: ${{ !startsWith(github.ref, 'refs/heads/release') && !startsWith(github.ref, 'refs/heads/dev') }}
id: update_draft_non_release
uses: release-drafter/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ jobs:
contents: write
pull-requests: write

uses: microsoft/mu_devops/.github/workflows/[email protected]
uses: makubacki/mu_devops/.github/workflows/[email protected]
secrets: inherit
Loading

0 comments on commit 441e1ec

Please sign in to comment.