Skip to content

Commit

Permalink
Merge pull request #4 from libresource/ci_cd
Browse files Browse the repository at this point in the history
Test action
  • Loading branch information
quillcraftsman authored Jan 30, 2024
2 parents da02c08 + 308eb25 commit 8b10505
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 6 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test_with_param.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Test Action With Param

on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test Action With Param
uses: libresource/action-template@v0.2.1
with:
param-example: 'Hello GitHub!'
12 changes: 12 additions & 0 deletions .github/workflows/test_without_param.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Test Action Without Param

on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test Action Without Param
uses: libresource/action-template@v0.2.1
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM ubuntu

COPY entrypoint.sh entrypoint.sh
COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]
40 changes: 36 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,49 @@ Just use this repository as GitHub repository template

## Quickstart

- Check [REAMDE.md](profile/README.md) in the profile folder. It's your organization readme
- Delete or change [this](README.md) README.md
```yaml
name: Test Action Without Param

on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test Action Without Param
uses: libresource/action-template@v0.2.1
```
```yaml
name: Test Action With Param

on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test Action With Param
uses: libresource/action-template@v0.2.1
with:
param-example: 'Hello GitHub!'
```
- Change [action.yml](action.yml), [Dockerfile](Dockerfile) and [entrypoint.sh](entrypoint.sh)
- Change [this](README.md) README.md
- Check all useful files in the project
- Use [CHECKLIST.md](CHECKLIST.md) to check all of you need for good open source project
- Enjoy
## Examples
GitHub's repositories which use this template
- [Libresource](https://github.com/libresource/.github)
- [FindSimilar](https://github.com/findsimilar/.github)
- [action-template](https://github.com/libresource/action-template) (This repository)
- [fun-adventure-in-turkey](https://github.com/PaxlavaGames/fun-adventure-in-turkey) (Visual Novel on RenPy)
## Contributing
Expand Down

0 comments on commit 8b10505

Please sign in to comment.