diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 06489bf5..44a8be05 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,6 +5,9 @@ on:
branches:
- 'main'
+env:
+ SHORT_SHA: "${GITHUB_SHA} | cut -c1-8`"
+
jobs:
docker:
runs-on: ubuntu-latest
@@ -46,8 +49,8 @@ jobs:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
- - name: Add SHORT_SHA env property with commit short sha
- run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
+ # - name: Add SHORT_SHA env property with commit short sha
+ # run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
-
name: Build and push latest
@@ -62,4 +65,4 @@ jobs:
with:
context: .
push: true
- tags: ppcelery/one-api:${SHORT_SHA}
+ tags: ppcelery/one-api:${{ env.SHORT_SHA }}
diff --git a/web/src/components/Footer.js b/web/src/components/Footer.js
index 334ee379..c303e79b 100644
--- a/web/src/components/Footer.js
+++ b/web/src/components/Footer.js
@@ -43,14 +43,6 @@ const Footer = () => {
>
{systemName} {process.env.REACT_APP_VERSION}{' '}
- 由{' '}
-
- JustSong
- {' '}
- 构建,源代码遵循{' '}
-
- MIT 协议
-
)}