From d3c192427213f236e8e34f304edf28c493dcfae3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 8 Nov 2025 18:29:17 +0000 Subject: [PATCH 1/2] Initial plan From c8cbd8e1d8daf724f44a6c5d4b66379641aed007 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 8 Nov 2025 18:32:16 +0000 Subject: [PATCH 2/2] Complete Update Issue created-at time step and share timestamp between steps Co-authored-by: hesreallyhim <172150522+hesreallyhim@users.noreply.github.com> --- .github/workflows/update-nonce.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-nonce.yml b/.github/workflows/update-nonce.yml index cb4a585..252bbe5 100644 --- a/.github/workflows/update-nonce.yml +++ b/.github/workflows/update-nonce.yml @@ -33,11 +33,18 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: Update Issue created-at time + if: steps.check-nonce.outputs.contains_nonce == 'true' + id: update-timestamp run: | - # Update the "Last Issue create at" time + # Update the "Last Issue created at" time TIMESTAMP=$(date -u +"%Y-%m-%d %H:%M:%S UTC") + echo "timestamp=$TIMESTAMP" >> $GITHUB_OUTPUT + echo "Generated timestamp: $TIMESTAMP" - + # Update the timestamp in the baseline section + sed -i 's/Last Issue created at: `[^`]*`/Last Issue created at: `'"$TIMESTAMP"'`/g' README.md + echo "Updated README.md with new timestamp in baseline section" + - name: Update nonce in README if: steps.check-nonce.outputs.contains_nonce == 'true' @@ -46,9 +53,9 @@ jobs: NEW_NONCE=$(printf "%06d" $((RANDOM % 1000000))) echo "Generated new nonce: $NEW_NONCE" - # Get current timestamp in UTC - TIMESTAMP=$(date -u +"%Y-%m-%d %H:%M:%S UTC") - echo "Current timestamp: $TIMESTAMP" + # Reuse timestamp from previous step + TIMESTAMP="${{ steps.update-timestamp.outputs.timestamp }}" + echo "Using timestamp from previous step: $TIMESTAMP" # Find and replace nonce=NNNNNN pattern with new nonce # Only within the NONCE section markers