From 6780858938097ba2af5cb72c16f298d7e7aef0fb Mon Sep 17 00:00:00 2001 From: Eugene Boguslavsky Date: Mon, 19 Aug 2024 21:34:22 +0000 Subject: [PATCH] checkout main --- .github/workflows/release-notes-generator.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-notes-generator.yml b/.github/workflows/release-notes-generator.yml index ee3fc71f5d880..9fd9f3654a675 100644 --- a/.github/workflows/release-notes-generator.yml +++ b/.github/workflows/release-notes-generator.yml @@ -45,14 +45,19 @@ jobs: shell: bash working-directory: ./ run: | - echo "current_commit=$(git rev-parse HEAD)" >> $GITHUB_ENV + echo "current_commit=$(git rev-parse HEAD)" >> $GITHUB_ENV + + - name: Checkout main + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + with: + ref: main - name: Generate Release Notes shell: bash working-directory: ./ run: | - # ./scripts/release_notes.py generate ${{ env.previous_commit }} ${{ env.current_commit }} > ./release_notes.txt - echo "release notes go here, so make sure that everything works" > ./release_notes.txt + ./scripts/release_notes.py generate ${{ env.previous_commit }} ${{ env.current_commit }} > ./release_notes.txt + if [[ ${{ inputs.release_tag }} == devnet* ]]; then echo "pre_release=true" >> $GITHUB_ENV else