This repository was archived by the owner on Dec 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +21
-21
lines changed Expand file tree Collapse file tree 6 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: git commit workflow
2
2
on :
3
3
push :
4
4
branches :
5
- - master
5
+ - main
6
6
7
7
jobs :
8
8
test :
@@ -21,14 +21,14 @@ jobs:
21
21
restore-keys : |
22
22
${{ runner.os }}-maven-
23
23
- run : mvn -B -e release:update-versions
24
- - uses : navikt/bidrag-git/commit@master
24
+ - uses : navikt/bidrag-git/commit@main
25
25
with :
26
26
commit_message : bump version without author information
27
27
pattern : pom.xml
28
28
env :
29
29
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
30
- run : mvn -B -e versions:set -DnewVersion=0.0.1-SNAPSHOT
31
- - uses : navikt/bidrag-git/commit@master
31
+ - uses : navikt/bidrag-git/commit@main
32
32
with :
33
33
author : tester
34
34
commit_message : reset version with author information given
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: test-cucumber-backend
2
2
on :
3
3
push :
4
4
branches :
5
- - master
5
+ - main
6
6
7
7
jobs :
8
8
it :
11
11
12
12
steps :
13
13
- uses : actions/checkout@v2
14
- - uses : navikt/bidrag-maven/cucumber-backend@master
14
+ - uses : navikt/bidrag-maven/cucumber-backend@main
15
15
with :
16
16
do_not_fail : true
17
17
maven_command : test
Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ name: test cucumber-clone action
2
2
on :
3
3
push :
4
4
branches :
5
- - master
5
+ - main
6
6
7
7
jobs :
8
8
test :
9
9
runs-on : ubuntu-16.04
10
10
name : test cucumber-clone action
11
11
12
12
steps :
13
- - uses : navikt/bidrag-integration/cucumber-clone@master
13
+ - uses : navikt/bidrag-integration/cucumber-clone@main
14
14
- name : verify cloned resources
15
15
run : |
16
16
set -x
22
22
ls -al "$CLONED_FOLDER"
23
23
ls -al "$CLONED_FOLDER/simple"
24
24
[ -d "$CLONED_FOLDER/simple/bidrag-test-github-actions" ] || exit 1
25
- - uses : navikt/bidrag-integration/cucumber-clone@master
25
+ - uses : navikt/bidrag-integration/cucumber-clone@main
26
26
with :
27
27
folder_nais_apps : alternativ
28
28
- name : verify cloned resources with alternative folder
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: cucumber report
2
2
on :
3
3
push :
4
4
branches :
5
- - master
5
+ - main
6
6
7
7
jobs :
8
8
report-page :
15
15
run : echo $(jq '.[].elements[].steps[].result.status' src/test/resources/cucumber.json | grep -c passed || true) > passed
16
16
- name : failed
17
17
run : echo $(jq '.[].elements[].steps[].result.status' src/test/resources/cucumber.json | grep -c failed || true) > failed
18
- - uses : navikt/bidrag-integration/cucumber-move@master
18
+ - uses : navikt/bidrag-integration/cucumber-move@main
19
19
with :
20
20
folder_move_from : resources/generated-report
21
21
front_page : front-page.md
41
41
echo "Folder : $FOLDER"
42
42
echo ::set-output name=folder::$FOLDER
43
43
id: json
44
- - uses : navikt/bidrag-integration/cucumber-latest@master
44
+ - uses : navikt/bidrag-integration/cucumber-latest@main
45
45
id : report
46
46
with :
47
47
relative_filepath : docs/latest/cucumber.json
62
62
if [[ $FAILED -ne $(cat failed) ]]; then
63
63
exit 1;
64
64
fi
65
- - uses : navikt/bidrag-integration/cucumber-status@master
65
+ - uses : navikt/bidrag-integration/cucumber-status@main
66
66
id : status
67
67
with :
68
68
github_page : front-page.md
71
71
timestamp : ${{ steps.report.outputs.time_moved }}
72
72
project_name : bidrag-test-github-actions
73
73
ghp_folder : docs
74
- - uses : navikt/bidrag-integration/reports@master
74
+ - uses : navikt/bidrag-integration/reports@main
75
75
with :
76
76
pages_address : https://navikt.github.io/bidrag-test-github-actions
77
77
path_github_page : ${{ steps.status.outputs.path_edited_page }}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: docker workflow
2
2
on :
3
3
push :
4
4
branches :
5
- - master
5
+ - main
6
6
7
7
env :
8
8
IMAGE : docker.pkg.github.com/${{ github.repository }}/bidrag-test-gh-actions:${{ github.sha }}
21
21
----
22
22
$REQUEST
23
23
"
24
- - uses : navikt/bidrag-docker/exists@master
24
+ - uses : navikt/bidrag-docker/exists@main
25
25
id : dockerimage
26
26
with :
27
27
image_name : bidrag-test-gh-actions
42
42
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
43
- run : mvn install -B -e -DskipTests=true
44
44
- run : pwd && ls -al && cat Dockerfile
45
- - uses : navikt/bidrag-docker/build@master
45
+ - uses : navikt/bidrag-docker/build@main
46
46
env :
47
47
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48
48
60
60
----
61
61
$REQUEST
62
62
"
63
- - uses : navikt/bidrag-docker/exists@master
63
+ - uses : navikt/bidrag-docker/exists@main
64
64
id : dockerimage
65
65
with :
66
66
image_name : bidrag-test-gh-actions
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: test local docker image
2
2
on :
3
3
push :
4
4
branches :
5
- - master
5
+ - main
6
6
7
7
env :
8
8
IMAGE : docker.pkg.github.com/${{ github.repository }}/bidrag-test-gh-actions:${{ github.sha }}
18
18
IS_FOUND="true"
19
19
docker image inspect $IMAGE || IS_FOUND="false"
20
20
echo docker image is found: $IS_FOUND
21
- - uses : navikt/bidrag-docker/local-exists@master
21
+ - uses : navikt/bidrag-docker/local-exists@main
22
22
id : dockerimage
23
23
with :
24
24
image_id : ${{ env.IMAGE }}
33
33
- uses : actions/checkout@v2
34
34
- run : docker run --rm -v $PWD:/usr/src/mymaven -v ~/.m2:/root/.m2 -w /usr/src/mymaven maven:3.6.3-jdk-14 mvn install -B -e -DskipTests=true
35
35
- run : pwd && ls -al && cat Dockerfile
36
- - uses : navikt/bidrag-docker/build@master
36
+ - uses : navikt/bidrag-docker/build@main
37
37
env :
38
38
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
39
48
48
IS_FOUND="true"
49
49
docker image inspect $IMAGE || IS_FOUND="false"
50
50
echo docker image is found: $IS_FOUND
51
- - uses : navikt/bidrag-docker/local-exists@master
51
+ - uses : navikt/bidrag-docker/local-exists@main
52
52
id : dockerimage
53
53
with :
54
54
image_id : ${{ env.IMAGE }}
You can’t perform that action at this time.
0 commit comments