mirror of
https://github.com/YunoHost-Apps/searxng_ynh.git
synced 2024-09-03 20:26:00 +02:00
Merge pull request #137 from YunoHost-Apps/testing-promotion
Upgrade testing from master
This commit is contained in:
commit
4635839922
3 changed files with 27 additions and 19 deletions
26
.github/workflows/update_testing.yml
vendored
Normal file
26
.github/workflows/update_testing.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
name: Create testing promotion pull request
|
||||||
|
on:
|
||||||
|
# Allow to manually trigger the workflow
|
||||||
|
workflow_dispatch:
|
||||||
|
# Run it when when someone pushes to master
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
testingPromotion:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: testing
|
||||||
|
- name: Reset promotion branch
|
||||||
|
run: |
|
||||||
|
git fetch origin master:master
|
||||||
|
git reset --hard master
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@v5
|
||||||
|
with:
|
||||||
|
branch: testing-promotion
|
||||||
|
title: 'Upgrade testing from master'
|
||||||
|
body: |
|
||||||
|
Upgrade testing from master
|
2
.github/workflows/updater.sh
vendored
2
.github/workflows/updater.sh
vendored
|
@ -48,7 +48,7 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Replace new version in _common.sh
|
# Replace new version in _common.sh
|
||||||
sed -i "s/^commit_sha=.*/commit_sha=$commit_hash/" scripts/_common.sh
|
sed -i "s/^commit_sha=.*/commit_sha=\"$commit_hash\"/" scripts/_common.sh
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
18
.github/workflows/updater.yml
vendored
18
.github/workflows/updater.yml
vendored
|
@ -39,24 +39,6 @@ jobs:
|
||||||
id: cpr-testing
|
id: cpr-testing
|
||||||
if: ${{ env.PROCEED == 'true' }}
|
if: ${{ env.PROCEED == 'true' }}
|
||||||
uses: peter-evans/create-pull-request@v4
|
uses: peter-evans/create-pull-request@v4
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
commit-message: Update testing to version ${{ env.VERSION }}
|
|
||||||
committer: 'yunohost-bot <yunohost-bot@users.noreply.github.com>'
|
|
||||||
author: 'yunohost-bot <yunohost-bot@users.noreply.github.com>'
|
|
||||||
signoff: false
|
|
||||||
base: testing
|
|
||||||
branch: ci-auto-update-v${{ env.VERSION }}-testing
|
|
||||||
delete-branch: true
|
|
||||||
title: 'Upgrade to version ${{ env.VERSION }} into testing'
|
|
||||||
body: |
|
|
||||||
Upgrade to v${{ env.VERSION }}
|
|
||||||
[See upstream release page](https://github.com/${{ env.REPO }}/releases/tag/v${{ env.VERSION }})
|
|
||||||
draft: false
|
|
||||||
- name: Create Pull Request to master
|
|
||||||
id: cpr-master
|
|
||||||
if: ${{ env.PROCEED == 'true' }}
|
|
||||||
uses: peter-evans/create-pull-request@v4
|
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
commit-message: Update master to version ${{ env.VERSION }}
|
commit-message: Update master to version ${{ env.VERSION }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue