generated from NethServer/ns8-kickstart
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actions: create PR for webtop's builds
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build Development | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update_create_pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get current stable version | ||
id: get_version | ||
run: echo "::set-output name=version::$(cat webtop5-build/VERSION)" | ||
- name: Get current stable version | ||
id: get_date | ||
run: | | ||
export TZ=Europe/Rome | ||
echo "::set-output name=current::$(date)" | ||
- name: Set development version | ||
run: echo "development-${{ steps.get_date.outputs.current }}" > webtop5-build/VERSION | ||
- name: Create/Update pull request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
branch: ${{ steps.get_version.outputs.version }}-next | ||
title: Update to upstream release ${{ steps.get_version.outputs.version }}-next | ||
body: '' | ||
commit-message: Update development war ${{ steps.get_date.outputs.current }} | ||
draft: true | ||
token: ${{ secrets.webtop_pr }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'WebTop Version' | ||
required: true | ||
|
||
jobs: | ||
update_create_pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get current stable version | ||
id: get_version | ||
run: echo "::set-output name=version::$(cat webtop5-build/VERSION)" | ||
- name: Set new version | ||
run: echo "wt-${{ github.event.inputs.version }}" > webtop5-build/VERSION | ||
- name: Create/Update pull request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
branch: ${{ steps.get_version.outputs.version }}-next | ||
title: Update to upstream release wt-${{ github.event.inputs.version }} | ||
body: '' | ||
commit-message: Update to upstream release wt-${{ github.event.inputs.version }} | ||
draft: false | ||
token: ${{ secrets.webtop_pr }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build Staging | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
war: | ||
description: 'WAR number' | ||
required: true | ||
|
||
jobs: | ||
update_create_pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get current stable version | ||
id: get_version | ||
run: echo "::set-output name=version::$(cat webtop5-build/VERSION)" | ||
- name: Set staging version | ||
run: echo "staging-${{ github.event.inputs.war }}" > webtop5-build/VERSION | ||
- name: Create/Update pull request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
branch: ${{ steps.get_version.outputs.version }}-next | ||
title: Update to upstream release ${{ steps.get_version.outputs.version }}-next | ||
body: '' | ||
commit-message: Update staging war ${{ github.event.inputs.war }} | ||
draft: true | ||
token: ${{ secrets.webtop_pr }} |