Skip to content

Commit ecd6b62

Browse files
authored
Merge pull request #153 from Flydiverny/fix-v2
fix to work on ubuntu 22
2 parents 85a8c92 + bd2ac0f commit ecd6b62

File tree

9 files changed

+1379
-269
lines changed

9 files changed

+1379
-269
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,14 @@ jobs:
1515
npm install
1616
- run: |
1717
npm run all
18+
19+
run:
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os: [ubuntu-latest, ubuntu-20.04, ubuntu-22.04]
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- uses: actions/checkout@v3
27+
- uses: ./
28+
- run: git-crypt version

LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
The MIT License (MIT)
33

4+
Copyright (c) 2022 Markus Maga
45
Copyright (c) 2018 GitHub, Inc. and contributors
56

67
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -19,4 +20,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1920
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2021
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2122
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22-
THE SOFTWARE.
23+
THE SOFTWARE.

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
11
# setup-git-crypt
22

3+
This is a GitHub Action for setting up git-crypt in a GitHub Actions workflow. Git-crypt is a tool for encrypting and decrypting files in a Git repository.
4+
The action will download the source for the git-crypt CLI and build it in runtime, it may also be cached in the tools cache.
5+
6+
## Pre-requisite for self-hosted runners
7+
38
This action requires openssl and openssl-devel to be installed on your runner (exists by default on github hosted runners).
49

510
```
611
yum install openssl openssl-devel
712
```
13+
14+
## Usage
15+
16+
To use this action in your workflow, add it as a step in your `.yml` file like this:
17+
18+
```yaml
19+
on: [push]
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: Flydiverny/setup-git-crypt@v1
27+
```
28+
29+
In this example, the `setup-git-crypt` action is added as a step in the `build` job, and it will be run when the workflow is triggered. The `setup-git-crypt` action will install and configure git-crypt in the environment where the action is running, allowing you to use git-crypt in the rest of your workflow.
30+
31+
## License
32+
33+
This project is licensed under the MIT License. See [LICENSE](./LICENSE) for more details.

0 commit comments

Comments
 (0)