Skip to content

Commit

Permalink
add saving release file
Browse files Browse the repository at this point in the history
  • Loading branch information
amfet42 committed Nov 29, 2023
1 parent 0ab7419 commit b4a38cc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/push_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,28 @@ jobs:
id: get_version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Checkout to repo
uses: actions/checkout@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}

- name: Create release file
run: |
TITLE="${{ github.event.release.name }}"
NOTES="${{ github.event.release.body }}"
DATE=$(date '+%d-%m-%Y')
mkdir deployments
echo $NOTES >> "deployments/release-$TITLE-$DATE.txt"
git config user.email "[email protected]"
git config user.name "curvefi"
git remote update
git fetch
git checkout master
git add deployments
git commit -m "chore: add release file - $TITLE"
git push
- name: Checkout to other repo
uses: actions/checkout@v3
with:
Expand Down

0 comments on commit b4a38cc

Please sign in to comment.