I have recently encountered an issue that I will need to address in the future. As a result, I am interested to create a time bomb in my CI workflow:
In computer software, a time bomb is part of a computer program that has been written so that it will start or stop functioning after a predetermined date or time is reached.
Here is what I have tried so far:
jobs:
Test-Runner:
runs-on: ubuntu-22.04
steps:
# Other steps ...
- name: 'A timebomb to address an issue on the 01/05/2023'
run: |
if [[ $(date +%s) -gt 1682895600 ]]; then
echo "It has been X months since #ISSUE was opened."
echo "Please check if Y has been fixed."
echo " If it has, please update do Z."
echo " else, please increase this timebomb by 1 month."
echo "See: ..."
fi
I want this step to fail on the given date, is this possible using Github actions?