Skip to content

Commit

Permalink
Merge pull request #2625 from v2fly/master
Browse files Browse the repository at this point in the history
marge fly
  • Loading branch information
kslr committed Jul 7, 2020
2 parents 4f7384c + b02a781 commit 4bb3e4e
Show file tree
Hide file tree
Showing 37 changed files with 4,623 additions and 3,651 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/dlc.yml
@@ -0,0 +1,28 @@
name: Update dlc

on:
schedule:
- cron: '0 0 * * FRI'

jobs:

build:
name: Update
runs-on: ubuntu-latest
steps:

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Download and Write
run: |
curl -L -o release/config/geoip.dat "https://github.com/v2ray/geoip/raw/release/geoip.dat"
curl -L -o release/config/geosite.dat "https://github.com/v2ray/domain-list-community/raw/release/dlc.dat"
- name: push
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -am "update geoip, geosite" -a
git push -v --progress
7 changes: 5 additions & 2 deletions .github/workflows/linter.yml
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
types: [assigned, opened, synchronize, reopened]

jobs:
build:
Expand All @@ -16,6 +17,8 @@ jobs:
uses: actions/checkout@v2

- name: Lint Code Base
uses: github/super-linter@v2.0.0
uses: github/super-linter@v2.2.0
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_ALL_CODEBASE: false
VALIDATE_JSON: false
VALIDATE_ANSIBLE: false
37 changes: 37 additions & 0 deletions .github/workflows/sign.yml
@@ -0,0 +1,37 @@
# This is a basic workflow to help you get started with Actions

name: Sign

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
release:
types: [released]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Invoke release signing
- name: make it run
run: chmod +x $GITHUB_WORKSPACE/release/requestsign_github.sh

# Invoke release signing
- name: make it run
run: chmod +x $GITHUB_WORKSPACE/release/requestsign.sh

# Invoke release signing
- name: Invoke release signing
env:
SIGN_SERVICE_PASSWORD: ${{ secrets.SIGN_SERVICE_PASSWORD }}
SIGN_SERIVCE_URL: ${{ secrets.SIGN_SERIVCE_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: $GITHUB_WORKSPACE/release/requestsign_github.sh
18 changes: 18 additions & 0 deletions .github/workflows/stale.yml
@@ -0,0 +1,18 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: "30 1 * * *"

jobs:
stale:

runs-on: ubuntu-latest

steps:
- uses: actions/stale@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days'
days-before-stale: 120
days-before-close: 5
6 changes: 4 additions & 2 deletions app/policy/config.go
Expand Up @@ -84,8 +84,10 @@ func (p *Policy) ToCorePolicy() policy.Session {
func (p *SystemPolicy) ToCorePolicy() policy.System {
return policy.System{
Stats: policy.SystemStats{
InboundUplink: p.Stats.InboundUplink,
InboundDownlink: p.Stats.InboundDownlink,
InboundUplink: p.Stats.InboundUplink,
InboundDownlink: p.Stats.InboundDownlink,
OutboundUplink: p.Stats.OutboundUplink,
OutboundDownlink: p.Stats.OutboundDownlink,
},
}
}

0 comments on commit 4bb3e4e

Please sign in to comment.