Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Update packages

Update packages #233

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 <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
assignees: imincik
reviewers: imincik
token: ${{ secrets.FLAKE_AUTOUPDATE_TOKEN }}