From 62e7603552b09e880a3c8246f8c4f6ef828cd1f9 Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Thu, 2 Feb 2023 22:53:08 -0500 Subject: [PATCH] Add past.yml --- .github/workflows/past.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/past.yml diff --git a/.github/workflows/past.yml b/.github/workflows/past.yml new file mode 100644 index 000000000..62e675acd --- /dev/null +++ b/.github/workflows/past.yml @@ -0,0 +1,23 @@ + +# Moves the "past-chrisproject-org" tag to HEAD^ (the second latest commit). +# This triggers a webhook which starts a build on MOC OpenShift, updating +# the https://past.chrisproject.org website. + +name: Trigger rebuild past.chrisproject.org + +on: + push: + branches: + - master + +jobs: + advance-past-tag: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 2 + - name: Advance past-chrisproject-org tag + run: | + git tag --force past-chrisproject-org 'HEAD^' + git push --tags --force