Skip to content

Commit ad47e9f

Browse files
committed
try out push via ssh
1 parent 47bf1ff commit ad47e9f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/cleanup.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#
2+
# __ __
3+
# / /____ ___ ____ ___ ___ _/ / This file is provided to you by https://github.com/tegonal/github-commons
4+
# / __/ -_) _ `/ _ \/ _ \/ _ `/ / Copyright 2022 Tegonal Genossenschaft <[email protected]>
5+
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal
6+
# /___/ Please report bugs and contribute back your improvements
7+
#
8+
# Version: v2.6.0
9+
###################################
10+
name: Cleanup
11+
12+
on:
13+
push:
14+
branches:
15+
- test
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Cleanup Sources
23+
run: echo "hello world" > dummy.txt
24+
- name: setup ssh
25+
run : |
26+
eval "$(ssh-agent -s)"
27+
ssh-add <(echo "${{ secrets.AUTO_PR_DEPLOY_KEY }}")
28+
- name: Create Pull Request if necessary
29+
uses: peter-evans/create-pull-request@v6
30+
with:
31+
branch: auto-cleanup
32+
title: Auto Cleanup
33+
commit-message: auto cleanup sources
34+
body: Looks like someone forgot to run ./scripts/cleanup-on-push-to-main.sh before committing. I did it for them :)
35+
delete-branch: true
36+
push-to-fork: ${{ vars.AUTO_PR_FORK_NAME != '' && vars.AUTO_PR_FORK_NAME || secrets.AUTO_PR_FORK_NAME }}

0 commit comments

Comments
 (0)