diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index aa49ad5..cb3a60b 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -491,8 +491,18 @@ jobs: # the PREVIOUS XPI while the freshly signed one is orphaned (#3156). # * dev and main derive the same values for the same source. - name: Report the derived artifact version + env: + # Diagnostic for the trigger normalisation. `refresh` is reported RAW + # as well as normalised, because the two disagreeing is the whole + # failure mode: a dispatch input whose type does not compare the way + # the expression assumes evaluates to false silently, and the only + # symptom is a refresh that quietly behaves like an ordinary push. + RAW_REFRESH: ${{ github.event.inputs.refresh }} + RAW_FORCE: ${{ github.event.inputs.force_build }} run: | set -u + echo "trigger: event=$GITHUB_EVENT_NAME IS_REFRESH='${IS_REFRESH:-}' BUILD_REF='${BUILD_REF:-}'" + echo "trigger: raw inputs refresh='${RAW_REFRESH:-}' force_build='${RAW_FORCE:-}'" A=web V=$(sh scripts/artifacts.sh version "$A" 2>&1 || echo UNAVAILABLE) R=$(sh scripts/artifacts.sh revision "$A" 2>&1 || echo UNAVAILABLE) @@ -1127,8 +1137,18 @@ jobs: # the PREVIOUS XPI while the freshly signed one is orphaned (#3156). # * dev and main derive the same values for the same source. - name: Report the derived artifact version + env: + # Diagnostic for the trigger normalisation. `refresh` is reported RAW + # as well as normalised, because the two disagreeing is the whole + # failure mode: a dispatch input whose type does not compare the way + # the expression assumes evaluates to false silently, and the only + # symptom is a refresh that quietly behaves like an ordinary push. + RAW_REFRESH: ${{ github.event.inputs.refresh }} + RAW_FORCE: ${{ github.event.inputs.force_build }} run: | set -u + echo "trigger: event=$GITHUB_EVENT_NAME IS_REFRESH='${IS_REFRESH:-}' BUILD_REF='${BUILD_REF:-}'" + echo "trigger: raw inputs refresh='${RAW_REFRESH:-}' force_build='${RAW_FORCE:-}'" A=ml V=$(sh scripts/artifacts.sh version "$A" 2>&1 || echo UNAVAILABLE) R=$(sh scripts/artifacts.sh revision "$A" 2>&1 || echo UNAVAILABLE) @@ -1617,8 +1637,18 @@ jobs: # the PREVIOUS XPI while the freshly signed one is orphaned (#3156). # * dev and main derive the same values for the same source. - name: Report the derived artifact version + env: + # Diagnostic for the trigger normalisation. `refresh` is reported RAW + # as well as normalised, because the two disagreeing is the whole + # failure mode: a dispatch input whose type does not compare the way + # the expression assumes evaluates to false silently, and the only + # symptom is a refresh that quietly behaves like an ordinary push. + RAW_REFRESH: ${{ github.event.inputs.refresh }} + RAW_FORCE: ${{ github.event.inputs.force_build }} run: | set -u + echo "trigger: event=$GITHUB_EVENT_NAME IS_REFRESH='${IS_REFRESH:-}' BUILD_REF='${BUILD_REF:-}'" + echo "trigger: raw inputs refresh='${RAW_REFRESH:-}' force_build='${RAW_FORCE:-}'" A=agent V=$(sh scripts/artifacts.sh version "$A" 2>&1 || echo UNAVAILABLE) R=$(sh scripts/artifacts.sh revision "$A" 2>&1 || echo UNAVAILABLE)