This repository contains GitHub Composite Actions built using Swift.
This is a series of combinations:
- To create convenient use cases, a Swift package executable was created,
- utilizing the OAS dependency: github-rest-api-swift-openapi
 
- To create GitHub Composite Actions,
- the Yams dependency is used: Yams
 
- Then, GitHub Actions are utilized
- to build the Swift package executable via Mint: Mint
- and to cache the Swift package executable via: setup-mint
 
The Release action creates on GitHub release using a Swift CLI tool. You can use it to bump major, minor, patch.
The Comment action comments on GitHub issues using a Swift CLI tool. You can use it to automatically craete or update comments.
The Comment action requires the following inputs:
- number: (required) The issue number to comment on.
- body: (required) The body of the comment.
- owner: (required) The owner of the repository.
- repo: (required) The name of the repository.
- token: (required) GitHub token with permissions to comment.
- anchor: (required) Anchor text for the comment.
To use the Comment action in a GitHub Actions workflow, create a YAML file in the .github/workflows directory of your repository:
https://github.com/Wei18/GitHubSwiftActions/blob/5e993bca0d3f050c590790954440a5953c81aeee/.github/workflows/Welcome.yml#L1-L24
To run the Comment action locally, use:
swift run --configuration release CommentFeel free to open issues or submit pull requests if you have improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.