-
Notifications
You must be signed in to change notification settings - Fork 10.3k
39 lines (33 loc) · 1.24 KB
/
update-date-in-last-update-badge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Update date in last update badge
on:
push:
branches:
- master
jobs:
run:
name: Update the date in last update badge to today
runs-on: ubuntu-20.04
# Limit this action to only run on the main repo and not on forks
if: github.repository_owner == 'goldbergyoni'
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Update last update badge
run: |
# Make file runnable
chmod +x "${GITHUB_WORKSPACE}/.github/workflows/update-last-update-badge.sh"
# Run script
"${GITHUB_WORKSPACE}/.github/workflows/update-last-update-badge.sh" "${GITHUB_WORKSPACE}/README.md"
- name: Commit & Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: update the last update badge to today [skip ci]
author: Update Last Update Badge Action <${{ github.actor }}@users.noreply.github.com>
branch: update-last-update-badge
delete-branch: true
title: 'Update last update badge to today [skip ci]'
labels: |
update-last-update-badge
auto-merge
# Force empty body as the action have default body
body: ''