Skip to content

Commit

Permalink
change outputfile
Browse files Browse the repository at this point in the history
  • Loading branch information
biosafetylvl5 committed Aug 15, 2024
1 parent 527e7b7 commit ea2731e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/new-brassy-note.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ jobs:
echo " | # # # https://github.com/NRLMMD-GEOIPS." \
>> RELEASE_NOTE_HEADER
output_file = v$(`echo ${{ steps.extract_version.outputs.version }}| tr . _`).rst
echo $output_file
brassy ./docs/source/releases/latest \
--output-file ./docs/source/releases/latest.rst \
--output-file ./docs/source/releases/$output_file \
--prefix-file RELEASE_NOTE_HEADER \
--no-rich \
--release-version ${{ steps.extract_version.outputs.version }}
Expand All @@ -67,7 +70,7 @@ jobs:
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git checkout -b \
update-release-note-${{ steps.extract_branch.outputs.branch }}
git add -f ./docs/source/releases/latest.rst # -f bc latest.rst in .gitignore
git add ./docs/source/releases/*.rst
git commit -m "Add Built Release Note"
git rm ./docs/source/releases/latest/*.yaml
git commit -m "Remove old yaml files"
Expand All @@ -82,7 +85,8 @@ jobs:
gh pr create \
--base ${{ steps.extract_branch.outputs.branch }} \
--head update-release-note-${{ steps.extract_branch.outputs.branch }} \
--title 'Merge new release note into CURRENT_BRANCH' \
--title \
'Merge new release note into ${{ steps.extract_branch.outputs.branch }}' \
--body 'Created by manually run Github action.'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ea2731e

Please sign in to comment.