3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-01-29 13:34:51 +00:00

Update README.md

This commit is contained in:
Tonye Jack 2023-10-26 14:44:18 -06:00 committed by GitHub
parent 4270b9fd4b
commit d0064d8549
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ And many more...
Visit the [discussions for more information](https://github.com/tj-actions/changed-files/discussions) or [create a new discussion](https://github.com/tj-actions/changed-files/discussions/new/choose) for usage-related questions.
### On `pull_request` 🔀
### On [`pull_request`](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request) 🔀
Detect changes to all files in a Pull request relative to the target branch or since the last pushed commit.
@ -215,7 +215,7 @@ jobs:
done
```
### On `push` ⬆️
### On [`push`](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push) ⬆️
Detect changes to files made since the last pushed commit.
@ -227,28 +227,6 @@ on:
branches:
- main
# -------------------------------
# Optionally run on other events
# -------------------------------
# schedule:
# - cron: '0 0 * * *'
#
# release:
# types: [...]
#
# workflow_dispatch:
#
# push:
# tags:
# - '**'
#
# merge_group:
#
# issue_comment:
#
# ...and many more
jobs:
# -------------------------------------------------------------
# Using GitHub's API is not supported for push events
@ -281,6 +259,15 @@ jobs:
...
```
### Other supported events :electron:
- [schedule](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule)
- [release](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release)
- [workflow_dispatch](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch)
- [merge_group](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#merge_group)
- [issue_comment](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment)
- ...and many more
To access more examples, navigate to the [Examples](#examples-) section.
If you feel generous and want to show some extra appreciation: