From 737a6f90c23872b47ee989b303dddd14e9cbd0aa Mon Sep 17 00:00:00 2001 From: Jean-Hadrien Chabran Date: Mon, 3 Jan 2022 18:00:24 +0100 Subject: [PATCH] Fix sg broken release process (#29384) --- .github/workflows/sg-binary-release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/sg-binary-release.yml b/.github/workflows/sg-binary-release.yml index 570b3872aa1..e49a2adbe1d 100644 --- a/.github/workflows/sg-binary-release.yml +++ b/.github/workflows/sg-binary-release.yml @@ -13,8 +13,28 @@ env: CGO_ENABLED: '1' jobs: + touch_sg: + name: Touch sourcegraph/sg + runs-on: ubuntu-latest + steps: + - name: checkout-sourcegraph-sg + uses: actions/checkout@v2 + with: + repository: sourcegraph/sg + token: ${{ secrets.SG_RELEASE_TOKEN }} + - name: touch-sourcegraph-sg + run: | + today=$(date +'%Y-%m-%d-%H-%M') + sed -i 's/Latest release: .*/Latest release: '"$today"'/' README.md + git config user.name github-actions + git config user.email github-actions@github.com + git add README.md + git commit -m "Update to latest release" + git push + create_release: name: create-github-release + needs: touch_sg runs-on: ubuntu-latest outputs: release_name: ${{ steps.release.outputs.release_name }}