From b4a38cc57982e214501498942f71d3a459fb7a27 Mon Sep 17 00:00:00 2001 From: Oleg <40476427+amfet42@users.noreply.github.com> Date: Wed, 29 Nov 2023 15:20:53 +0100 Subject: [PATCH] add saving release file --- .github/workflows/push_pr.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/push_pr.yml b/.github/workflows/push_pr.yml index 13abd99..040e36c 100644 --- a/.github/workflows/push_pr.yml +++ b/.github/workflows/push_pr.yml @@ -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 "curvefi@users.noreply.github.com" + 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: