Skip to content

Commit

Permalink
DO NOT MERGE: test pr creation
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwarDDay committed Apr 11, 2021
1 parent 47dbc52 commit 5ba6165
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test

on:
pull_request:

jobs:
build:
runs-on: ubuntu-20.04

steps:
- name: checkout
uses: actions/checkout@v2.3.4

- name: create test project directory
run: mkdir test-project

- name: Prepare test project
working-directory: test-project/
run: ${{ github.workspace }}/.github/scripts/test-upgrade-gradle.sh

- name: Test action
id: test
uses: ./
with:
working-directory: test-project/

- name: Test action
run: echo "${{ steps.test.outputs.fixed-issues }}"

- name: create PR
uses: peter-evans/create-pull-request@v3
with:
commit-message: "Update gradle to ${{ steps.test.outputs.gradle-version }}"
branch: "gradle_update/version_${{ steps.test.outputs.gradle-version }}"
delete-branch: true
base: test_version_information_as_pr_body
draft: true
title: "Update gradle to ${{ steps.test.outputs.gradle-version }}"
body: |
${{ steps.test.outputs.version-information }}
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
labels: "dependencies,gradle"

0 comments on commit 5ba6165

Please sign in to comment.