Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx: update bundles version 1.23.4 #1

Closed
wants to merge 10 commits into from
18 changes: 18 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- master
- 'maintenance/**'
- 'detect-nginx-update'
tags:
- '*'
pull_request:
Expand All @@ -21,6 +22,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt update -o="APT::Acquire::Retries=3"
Expand All @@ -43,6 +45,22 @@ jobs:
cd ..
git clone --depth 1 https://github.com/groonga/groonga.org.git
git clone --depth 1 https://github.com/clear-code/cutter.git
- name: Create nginx update request
run: |
upstream_version=`curl -s "https://nginx.org/en/CHANGES" | awk 'NR==2{print $4}'`
bundled_version=`cat nginx_version`
pr_branch_name=update-bundled-nginx
if [ "${upstream_version}" != "${bundled_version}" ]; then
git switch -c ${pr_branch_name}
git push -u origin ${pr_branch_name}
pushd vendor
./update_nginx.sh ${upstream_version}
gh pr create --fill --draft --title "nginx: update bundles version ${upstream_version}"
git switch master
popd
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate configure
run: |
./autogen.sh
Expand Down
Loading