File tree 3 files changed +35
-9
lines changed
3 files changed +35
-9
lines changed Original file line number Diff line number Diff line change
1
+ name : Create Tag
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ # explicit deny all here to make sure there isnt a commit loop
7
+ - ' !*'
8
+ - main
9
+
10
+ jobs :
11
+ create_tag :
12
+ runs-on : ubuntu-latest
13
+ needs : run_tests
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v2
17
+
18
+ - name : check if tag already exists
19
+ run : git fetch --depth=1 origin +refs/tags/*:refs/tags/* && git rev-parse "$(cat VERSION)" >/dev/null 2>&1 && exit 1 || exit 0
20
+
21
+ - name : create tag
22
+ run : git config --global user.email "${{ github.actor }}" && git config --global user.name "${{ github.actor }}" && git tag -a -m "$(cat VERSION)" $(cat VERSION) && git push --follow-tags
Original file line number Diff line number Diff line change 1
- name : Test and Tag
1
+ name : Run tests
2
2
3
3
on :
4
4
push :
5
5
branches :
6
6
# explicit deny all here to make sure there isnt a commit loop
7
7
- ' !*'
8
8
- main
9
+ - fix/*
9
10
10
11
jobs :
11
- test_and_tag :
12
+ run_tests :
12
13
runs-on : ubuntu-latest
13
14
steps :
14
15
- name : Checkout
15
16
uses : actions/checkout@v2
16
17
17
- - name : check if tag already exists
18
- run : git fetch --depth=1 origin +refs/tags/*:refs/tags/* && git rev-parse "$(cat VERSION)" >/dev/null 2>&1 && exit 1 || exit 0
19
-
20
18
- name : create test file
21
19
run : echo $(date) > tmp.txt
22
20
52
50
destination_folder : destination
53
51
deploy_key : ${{ secrets.DEPLOY_KEY }}
54
52
53
+ - name : test destination subdirectory
54
+ uses : ./
55
+ with :
56
+ source : tmp
57
+ destination_repo : leigholiver/commit-with-deploy-key
58
+ destination_branch : destination_subdirectory_test
59
+ destination_folder : destination/destination_sub
60
+ deploy_key : ${{ secrets.DEPLOY_KEY }}
61
+
55
62
- name : test destination directory with removal
56
63
uses : ./
57
64
with :
78
85
destination_branch : commit_message_test
79
86
deploy_key : ${{ secrets.DEPLOY_KEY }}
80
87
commit_message : testing a custom commit message (${{ github.sha }})
81
-
82
- - name : create tag
83
- run : git config --global user.email "${{ github.actor }}" && git config --global user.name "${{ github.actor }}" && git tag -a -m "$(cat VERSION)" $(cat VERSION) && git push --follow-tags
Original file line number Diff line number Diff line change 1
- v1.0.1
1
+ v1.0.2
You can’t perform that action at this time.
0 commit comments