From 0002e3cc3d8f0b7ca1e29da861183a9fb4a01dcd Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 23 Oct 2024 10:25:56 +0100 Subject: [PATCH] test --- .github/workflows/on-pr.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/on-pr.yml b/.github/workflows/on-pr.yml index aa64dc83..2c2cdd5d 100644 --- a/.github/workflows/on-pr.yml +++ b/.github/workflows/on-pr.yml @@ -22,14 +22,26 @@ jobs: run: npm ci - name: Run tests run: npm run test - - name: Get lastUpdated from package.json - id: lastUpdated - run: echo "lastUpdated=$(cat package.json | jq .lastUpdated)" >> $GITHUB_OUTPUT + + release-comment: + name: Release Comment + runs-on: ubuntu-latest + # if: ${{github.}} TODO: Add condition to only run on PRs that contain release in the title + steps: + # - name: Get lastUpdated from package.json + # id: lastUpdated + # run: echo "lastUpdated=$(cat package.json | jq .lastUpdated)" >> $GITHUB_OUTPUT + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) | jq .title}} + run: echo "$GITHUB_CONTEXT" - name: Comment uses: mikedloss/create-update-comment@v1 + # env: + # lastUpdated: ${{cat package.json | jq .lastUpdated}} with: token: ${{ secrets.GITHUB_TOKEN }} unique-identifier: "lastUpdated comment" message: | - ## PR is ready to merge. - Last updated: ${{steps.lastUpdated.outputs.lastUpdated}} + ### PR is ready to merge. + Last updated: $(cat package.json | jq .lastUpdated)