Skip to content

Commit

Permalink
add cronjob ghaction job
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed May 18, 2021
1 parent 8706618 commit d4af260
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Close stale issues"
on:
schedule:
- cron: "*/5 * * * *"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.13
stable: true
- name: Update Changelog
run: |
curl -o git-chglog -L https://github.com/git-chglog/git-chglog/releases/download/0.9.1/git-chglog_linux_amd64
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.PAT }}
commit-message: Update dependencies
title: Update dependencies
body: |
- Dependency updates
Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
branch: update-dependencies


- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello wolrd

0 comments on commit d4af260

Please sign in to comment.