diff --git a/.github/workflows/push-staging-pr-on-close.yml b/.github/workflows/push-staging-pr-on-close.yml index eda6a7a22..6edb04a14 100644 --- a/.github/workflows/push-staging-pr-on-close.yml +++ b/.github/workflows/push-staging-pr-on-close.yml @@ -18,6 +18,8 @@ jobs: timezoneLinux: "America/Los_Angeles" - name: Checkout repo uses: actions/checkout@v4 + with: + ref: refs/pull/${{ github.event.pull_request.number }}/merge - name: Download artifact uses: actions/download-artifact@v4 @@ -31,7 +33,7 @@ jobs: echo "ERROR: dynamix.unraid.net.pr.plg not found" exit 1 fi - + plgfile="connect-files/plugins/dynamix.unraid.net.pr.plg" version=$(date +"%Y.%m.%d.%H%M") sed -i -E "s#()#\1${version}\2#g" "${plgfile}" || exit 1