@marcel91200 / caddy Mirror · read-only / commits / 4e54e484
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 13, 08:00 UTC

ci: Update GitHub Actions to avoid `set-output` deprecation (#5271)

TAKAHASHI Shuuji committed Dec 29, 2022 at 02:05 UTC 4e54e48409bb3716f6b10d54a7e8fafd6be898dc
2 files changed +9 -9
.github/workflows/ci.yml
+3 -3
@@ -64,7 +64,7 @@ jobs:
64 # go get github.com/axw/gocov/gocov
65 # go get github.com/AlekSi/gocov-xml
66 # go get -u github.com/jstemmer/go-junit-report
67 - # echo "::add-path::$(go env GOPATH)/bin"
67 + # echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
68
69 - name: Print Go version and environment
70 id: vars
@@ -77,7 +77,7 @@ jobs:
77 env
78 printf "Git version: $(git version)\n\n"
79 # Calculate the short SHA1 hash of the git commit
80 - echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
80 + echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
81
82 - name: Cache the build cache
83 uses: actions/cache@v3
@@ -123,7 +123,7 @@ jobs:
123 run: |
124 # (go test -v -coverprofile=cover-profile.out -race ./... 2>&1) > test-results/test-result.out
125 go test -v -coverprofile="cover-profile.out" -short -race ./...
126 - # echo "::set-output name=status::$?"
126 + # echo "status=$?" >> $GITHUB_OUTPUT
127
128 # Relevant step if we reinvestigate publishing test/coverage reports
129 # - name: Prepare coverage reports
.github/workflows/release.yml
+6 -6
@@ -61,8 +61,8 @@ jobs:
61 go env
62 printf "\n\nSystem environment:\n\n"
63 env
64 - echo "::set-output name=version_tag::${GITHUB_REF/refs\/tags\//}"
65 - echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
64 + echo "version_tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
65 + echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
66
67 # Add "pip install" CLI tools to PATH
68 echo ~/.local/bin >> $GITHUB_PATH
@@ -74,10 +74,10 @@ jobs:
74 TAG_MINOR=`echo ${TAG#v} | sed -e "s#$SEMVER_RE#\2#"`
75 TAG_PATCH=`echo ${TAG#v} | sed -e "s#$SEMVER_RE#\3#"`
76 TAG_SPECIAL=`echo ${TAG#v} | sed -e "s#$SEMVER_RE#\4#"`
77 - echo "::set-output name=tag_major::${TAG_MAJOR}"
78 - echo "::set-output name=tag_minor::${TAG_MINOR}"
79 - echo "::set-output name=tag_patch::${TAG_PATCH}"
80 - echo "::set-output name=tag_special::${TAG_SPECIAL}"
77 + echo "tag_major=${TAG_MAJOR}" >> $GITHUB_OUTPUT
78 + echo "tag_minor=${TAG_MINOR}" >> $GITHUB_OUTPUT
79 + echo "tag_patch=${TAG_PATCH}" >> $GITHUB_OUTPUT
80 + echo "tag_special=${TAG_SPECIAL}" >> $GITHUB_OUTPUT
81
82 # Cloudsmith CLI tooling for pushing releases
83 # See https://help.cloudsmith.io/docs/cli