mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:51:43 +00:00
Fix sg broken release process (#29384)
This commit is contained in:
parent
e08b47674c
commit
737a6f90c2
20
.github/workflows/sg-binary-release.yml
vendored
20
.github/workflows/sg-binary-release.yml
vendored
@ -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 }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user