generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 5
71 lines (62 loc) · 2.06 KB
/
update-packages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Update packages
on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:
env:
NIX_CONFIG: "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}"
jobs:
update-package:
strategy:
fail-fast: false
matrix:
package:
- gdal
- geos
- libgeotiff
# - librttopo # not on GitHub (https://git.osgeo.org/gitea/rttopo/librttopo)
- libspatialindex
# - libspatialite # not on GitHub (gaia-gis.it)
- pdal
# - postgis # not on GitHub (git.osgeo.org/gitea/postgis/postgis)
- proj
- python3-fiona
- python3-geopandas
- python3-owslib
- python3-pyproj
- python3-rasterio
- python3-shapely
- grass
- qgis
- qgis-ltr
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Nix
uses: cachix/install-nix-action@v22
- name: Update package
run: >
nix develop .#ci
--accept-flake-config
--command utils/update-version.sh ${{ matrix.package }}
env:
GITHUB_API_TOKEN: ${{ secrets.AGITHUB_API_TOKEN}}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: "pkgs(${{ matrix.package }}): automatic package update"
body: |
Update package to the latest upstream version.
PR auto-generated by [create-pull-request][1].
[1]: https://github.com/peter-evans/create-pull-request
branch: ${{ matrix.package }}-update-action-pr
delete-branch: true
commit-message: "pkgs(${{ matrix.package }}): update to the latest version"
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
assignees: imincik
reviewers: imincik
token: ${{ secrets.FLAKE_AUTOUPDATE_TOKEN }}