From ecb8dd2d7ffbbb3a0dadb8c55fa1ac5de1a601ae Mon Sep 17 00:00:00 2001 From: Diogo Castro Date: Tue, 25 Oct 2022 13:31:11 +0100 Subject: [PATCH 1/3] Add version 0.2.2 --- .github/workflows/ci.yml | 5 +++++ README.md | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de852c6..9bfc3b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,3 +58,8 @@ jobs: uses: ./ with: xrefcheck-version: 0.2.1 + + - name: Run 0.2.2 + uses: ./ + with: + xrefcheck-version: 0.2.2 diff --git a/README.md b/README.md index 13d0156..90b8012 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ In a future version it may contain an absolute path. ### Example -To run `xrefcheck-0.2.1` on your repository in the `local-only` mode: +To run `xrefcheck-0.2.2` on your repository in the `local-only` mode: ```yaml jobs: @@ -41,7 +41,7 @@ jobs: - uses: actions/checkout@v2 - uses: serokell/xrefcheck-action@v1 with: - xrefcheck-version: 0.2.1 + xrefcheck-version: 0.2.2 xrefcheck-args: --mode local-only ``` @@ -52,6 +52,7 @@ jobs: - 0.1.3 - 0.2 - 0.2.1 +- 0.2.2 #### Updating supported versions From 15f4bef7c768456511e38241a642d9c69fc7846b Mon Sep 17 00:00:00 2001 From: Diogo Castro Date: Tue, 25 Oct 2022 14:09:39 +0100 Subject: [PATCH 2/3] Install git Problem: As of [v0.2.2](https://github.com/serokell/xrefcheck/releases/tag/v0.2.2), xrefcheck now requires git to be available in the PATH. See: * https://github.com/serokell/xrefcheck/issues/139 * https://github.com/serokell/xrefcheck/pull/174 Solution: add `git` as a dependency in the dockerfile. --- Dockerfile | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ad8855f..9e0c885 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ FROM alpine:3.11 # Install dependencies RUN apk update ## pass these flags to make the image smaller -RUN apk --no-cache --virtual add bash wget +RUN apk --no-cache --virtual add bash wget git # Copies your code file from your action repository to the filesystem path `/` of the container COPY entrypoint.sh /entrypoint.sh diff --git a/README.md b/README.md index 90b8012..81e37fc 100644 --- a/README.md +++ b/README.md @@ -45,14 +45,14 @@ jobs: xrefcheck-args: --mode local-only ``` -### Supported versions +### Supported xrefcheck versions - 0.1.2 - 0.1.3 - 0.2 - 0.2.1 -- 0.2.2 +- 0.2.2: requires xrefcheck-action v1.0.3 or greater #### Updating supported versions From b8b0fddd5a8356de1731acbafb756bb238c2537b Mon Sep 17 00:00:00 2001 From: Diogo Castro Date: Tue, 25 Oct 2022 20:02:33 +0100 Subject: [PATCH 3/3] Use environment files instead of `set-output` Problem: We're getting the following warning in the CI: > Warning: The `set-output` command is deprecated and will be disabled > soon. Please upgrade to using Environment Files. For more information > see: > https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ Solution: Stop using `set-output`, start using environment files as demonstrated in the link above. --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e9401d0..c8c7913 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -49,4 +49,4 @@ if [ "$need_run" == true ]; then set +x fi -echo "::set-output name=xrefcheck-path::$xrefcheck_path" +echo "xrefcheck-path=$xrefcheck_path" >> $GITHUB_OUTPUT