This repository was archived by the owner on Oct 15, 2024. It is now read-only.
Commit 7232d00 1 parent 6eea4ee commit 7232d00 Copy full SHA for 7232d00
File tree 3 files changed +19
-11
lines changed
3 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 32
32
docker_build :
33
33
runs-on : ubuntu-22.04
34
34
name : Docker Build
35
- if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'rebuy-de/aws-nuke' }}
35
+ if : github.event_name != 'pull_request' || ( github.event.pull_request.head.repo.full_name == 'rebuy-de/aws-nuke' && github.event.pull_request.user.login != 'dependabot[bot]')
36
36
37
37
steps :
38
38
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: Publish release artifacts
3
3
on :
4
4
release :
5
5
types : [created]
6
+ permissions :
7
+ contents : write
8
+ pull-requests : write
6
9
7
10
jobs :
8
11
update_readme :
@@ -14,13 +17,19 @@ jobs:
14
17
with :
15
18
fetch-depth : 0
16
19
ref : main
17
- - run : |
18
- sed -r -i "s/aws-nuke:v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke:${GITHUB_REF#refs/tags/}/" README.md
19
- sed -r -i "s/aws-nuke-v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke-${GITHUB_REF#refs/tags/}/" README.md
20
- sed -r -i "s/\/v[0-9]+\.[0-9]+\.[0-9]+\//\/${GITHUB_REF#refs/tags/}\//" README.md
21
- - uses : stefanzweifel/git-auto-commit-action@v4
20
+ - name : Update versions in readme
21
+ run : |
22
+ sed -r -i "s/aws-nuke:v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke:${{ github.ref_name }}/" README.md
23
+ sed -r -i "s/aws-nuke-v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke-${{ github.ref_name }}/" README.md
24
+ sed -r -i "s/\/v[0-9]+\.[0-9]+\.[0-9]+\//\/${{ github.ref_name }}\//" README.md
25
+ - uses : peter-evans/create-pull-request@v5
26
+ name : Create Pull Request
22
27
with :
23
- commit_message : Update readme for ${GITHUB_REF#refs/tags/}
28
+ title : Update readme for ${{ github.ref_name }} release
29
+ commit-message : Update readme for ${{ github.ref_name }} release
30
+ body : Updating version references in the readme to ${{ github.ref_name }}
31
+ branch : update-readme-${{ github.ref_name }}
32
+ delete-branch : true
24
33
25
34
release :
26
35
name : Publish binaries
Original file line number Diff line number Diff line change @@ -601,7 +601,7 @@ presets:
601
601
602
602
# # Install
603
603
604
- # ## For Mac
604
+ # ## For macOS
605
605
` brew install aws-nuke`
606
606
607
607
# ## Use Released Binaries
@@ -612,7 +612,7 @@ The easiest way of installing it, is to download the latest
612
612
# ### Example for Linux Intel/AMD
613
613
614
614
Download and extract
615
- ` $ wget -c https://github.com/rebuy-de/aws-nuke/releases/download/v2.16.0/aws-nuke-v2.16.0-linux-amd64.tar.gz -O - | sudo tar -xz -C $HOME/bin`
615
+ ` $ wget -c https://github.com/rebuy-de/aws-nuke/releases/download/v2.16.0/aws-nuke-v2.16.0-linux-amd64.tar.gz -O - | tar -xz -C $HOME/bin`
616
616
617
617
Run
618
618
` $ aws-nuke-v2.16.0-linux-amd64`
@@ -623,8 +623,7 @@ To compile *aws-nuke* from source you need a working
623
623
[Golang](https://golang.org/doc/install) development environment. The sources
624
624
must be cloned to `$GOPATH/src/github.com/rebuy-de/aws-nuke`.
625
625
626
- Also you need to install [Glide](https://glide.sh/),
627
- [golint](https://github.com/golang/lint/) and [GNU
626
+ Also you need to install [golint](https://github.com/golang/lint/) and [GNU
628
627
Make](https://www.gnu.org/software/make/).
629
628
630
629
Then you just need to run `make build` to compile a binary into the project
You can’t perform that action at this time.
0 commit comments