Skip to content

Commit

Permalink
use taskrun instead of pipelinerun
Browse files Browse the repository at this point in the history
since we moved now to taskrun in pipelines-as-code tasks
  • Loading branch information
chmouel committed Jan 28, 2022
1 parent ca7e407 commit ca8e53f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/dev/replay-last-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ if [[ ${1:-""} == -l ]];then
elif [[ -n ${1:-""} ]];then
arg="${1}"
else
pr=$(tkn pr ls --no-headers|fzf -1)
pr=$(tkn tr ls --no-headers|fzf -1)
[[ -z ${pr} ]] && exit 0
arg=$(echo ${pr}|awk '{print $1}')
echo "Selected ${arg}"
fi
tkn pr logs ${arg} --prefix=false 2>/dev/null > ${TMPD}/last
tkn tr logs ${arg} --prefix=false 2>/dev/null > ${TMPD}/last
[[ -s ${TMPD}/last ]] || { echo "payload could not be found"; exit 1 ;}

export PAC_PAYLOAD_FILE=${TMPD}/payload.json
Expand Down

0 comments on commit ca8e53f

Please sign in to comment.