mirror of
https://github.com/P3TERX/GeoLite.mmdb.git
synced 2026-09-05 23:05:48 +08:00
Update workflow file
This commit is contained in:
parent
20379002db
commit
3bd5ebd773
39
.github/workflows/GeoLite.yml
vendored
39
.github/workflows/GeoLite.yml
vendored
@ -1,12 +1,31 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2020-2021 P3TERX <https://p3terx.com>
|
|
||||||
#
|
|
||||||
# This is free software, licensed under the MIT License.
|
|
||||||
# See /LICENSE for more information.
|
|
||||||
#
|
|
||||||
# https://github.com/P3TERX/GeoLite.mmdb
|
# https://github.com/P3TERX/GeoLite.mmdb
|
||||||
|
#
|
||||||
|
# File: .github/workflows/GeoLite.yml
|
||||||
# Description: Publish GeoLite.mmdb
|
# Description: Publish GeoLite.mmdb
|
||||||
#
|
#
|
||||||
|
# MIT License
|
||||||
|
#
|
||||||
|
# Copyright (c) 2021-2024 P3TERX <https://p3terx.com>
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in all
|
||||||
|
# copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
#
|
||||||
|
|
||||||
name: Publish GeoLite.mmdb
|
name: Publish GeoLite.mmdb
|
||||||
|
|
||||||
@ -44,7 +63,7 @@ jobs:
|
|||||||
git push -f origin download
|
git push -f origin download
|
||||||
|
|
||||||
- name: Upload to Releases
|
- name: Upload to Releases
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
@ -53,9 +72,15 @@ jobs:
|
|||||||
files: upload/*.mmdb
|
files: upload/*.mmdb
|
||||||
|
|
||||||
- name: Remove old Releases
|
- name: Remove old Releases
|
||||||
uses: dev-drprasad/delete-older-releases@v0.2.0
|
uses: dev-drprasad/delete-older-releases@master
|
||||||
with:
|
with:
|
||||||
keep_latest: 2
|
keep_latest: 2
|
||||||
delete_tags: true
|
delete_tags: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Delete workflow runs
|
||||||
|
uses: Mattraks/delete-workflow-runs@main
|
||||||
|
with:
|
||||||
|
retain_days: 0
|
||||||
|
keep_minimum_runs: 2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user