mirror of
https://github.com/gfwlist/gfwlist.git
synced 2026-10-23 12:53:43 +08:00
Update sendGFWList.yml
This commit is contained in:
28
.github/workflows/sendGFWList.yml
vendored
28
.github/workflows/sendGFWList.yml
vendored
@@ -93,17 +93,17 @@ jobs:
|
||||
echo "Syncing $(git rev-parse --short HEAD) to GitLab..."
|
||||
git push --force "https://${username}:${GITLAB_TOKEN}@gitlab.com/gfwlist/gfwlist.git" "HEAD:refs/heads/master"
|
||||
|
||||
- name: Push to Bitbucket
|
||||
if: github.ref == 'refs/heads/master'
|
||||
env:
|
||||
BITBUCKET_TOKEN: ${{ secrets.BITBUCKET_TOKEN }}
|
||||
BITBUCKET_USERNAME: ${{ secrets.BITBUCKET_USERNAME }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [ -z "${BITBUCKET_TOKEN:-}" ]; then
|
||||
echo "::warning::BITBUCKET_TOKEN is not configured, skipping Bitbucket mirror sync."
|
||||
exit 0
|
||||
fi
|
||||
export GIT_TERMINAL_PROMPT=0
|
||||
echo "Syncing $(git rev-parse --short HEAD) to Bitbucket..."
|
||||
git push --force "https://${BITBUCKET_TOKEN}@bitbucket.org/gfwlist/gfwlist.git" "HEAD:refs/heads/master"
|
||||
# - name: Push to Bitbucket
|
||||
# if: github.ref == 'refs/heads/master'
|
||||
# env:
|
||||
# BITBUCKET_TOKEN: ${{ secrets.BITBUCKET_TOKEN }}
|
||||
# BITBUCKET_USERNAME: ${{ secrets.BITBUCKET_USERNAME }}
|
||||
# run: |
|
||||
# set -euo pipefail
|
||||
# if [ -z "${BITBUCKET_TOKEN:-}" ]; then
|
||||
# echo "::warning::BITBUCKET_TOKEN is not configured, skipping Bitbucket mirror sync."
|
||||
# exit 0
|
||||
# fi
|
||||
# export GIT_TERMINAL_PROMPT=0
|
||||
# echo "Syncing $(git rev-parse --short HEAD) to Bitbucket..."
|
||||
# git push --force "https://${BITBUCKET_TOKEN}@bitbucket.org/gfwlist/gfwlist.git" "HEAD:refs/heads/master"
|
||||
|
||||
Reference in New Issue
Block a user