From f914eea9739e5c36049a5d018ac988ba21926325 Mon Sep 17 00:00:00 2001 From: Antoni Baum Date: Sun, 13 Sep 2020 16:49:51 +0200 Subject: [PATCH 1/2] CK3 support --- lib/entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/entrypoint.sh b/lib/entrypoint.sh index 3d7203a..960ef05 100755 --- a/lib/entrypoint.sh +++ b/lib/entrypoint.sh @@ -52,6 +52,7 @@ case $INPUT_GAME in "vic2") echo "Game selected as $INPUT_GAME..." ;; "ir") echo "Game selected as $INPUT_GAME..." ;; "stellaris") echo "Game selected as $INPUT_GAME..." ;; + "ck3") echo "Game selected as $INPUT_GAME..." ;; *) echo "Wrong game, $INPUT_GAME is not valid!" 1>&2 ; exit 1 # terminate and indicate error esac From a729d740ba1fbb71c799b65850730328a7bacb5c Mon Sep 17 00:00:00 2001 From: Antoni Baum Date: Thu, 9 Mar 2023 19:39:42 -0800 Subject: [PATCH 2/2] Update version in examples/readme --- README.md | 28 ++++++++++++++-------------- examples/GitHub_CWToolsCI.yml | 4 ++-- examples/GitLab_CWToolsCI.yml | 2 +- lib/gitlab_setup.sh | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index de24027..0369414 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 # required - - uses: cwtools/cwtools-action@v1.0.0 + - uses: cwtools/cwtools-action@v1.1.0 with: game: hoi4 env: @@ -44,14 +44,14 @@ This action will create a new job called "CWTools", which will be used to annota The full `output.json` log is saved to `$GITHUB_WORKSPACE`, and can be recovered with [actions/upload-artifact](https://github.com/actions/upload-artifact). ```yml - - uses: cwtools/cwtools-action@v1.0.0 + - uses: cwtools/cwtools-action@v1.1.0 with: game: hoi4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload artifact if: always() # so even if the check fails, the log is uploaded - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@v1.1.0 with: name: cwtools_output path: output.json @@ -64,7 +64,7 @@ The full `output.json` log is saved to `$GITHUB_WORKSPACE`, and can be recovered What game to use. Allowed values: `hoi4`, `ck2`, `eu4`, `ir`, `stellaris`, `vic2`. ```yml - - uses: cwtools/cwtools-action@v1.0.0 + - uses: cwtools/cwtools-action@v1.1.0 with: game: hoi4 env: @@ -76,7 +76,7 @@ What game to use. Allowed values: `hoi4`, `ck2`, `eu4`, `ir`, `stellaris`, `vic2 Path to the mod folder in `$GITHUB_WORKSPACE` (root of repository). (Default: "" - root of repository itself) ```yml - - uses: cwtools/cwtools-action@v1.0.0 + - uses: cwtools/cwtools-action@v1.1.0 with: game: hoi4 modPath: "mod_folder" @@ -89,7 +89,7 @@ Path to the mod folder in `$GITHUB_WORKSPACE` (root of repository). (Default: "" Path to the full cache file (`cwb.bz2`) in `$GITHUB_WORKSPACE` (root of repository). Use an empty string to use metadata from cwtools/cwtools-cache-files (Default: use metadata) ```yml - - uses: cwtools/cwtools-action@v1.0.0 + - uses: cwtools/cwtools-action@v1.1.0 with: game: hoi4 cache: "cache/hoi4.cwb.bz2" @@ -102,7 +102,7 @@ Path to the full cache file (`cwb.bz2`) in `$GITHUB_WORKSPACE` (root of reposito Which languages to check localisation for, space separated, lowercase (eg. `english spanish russian`). Note: May be different from game to game. (Default: `english`) ```yml - - uses: cwtools/cwtools-action@v1.0.0 + - uses: cwtools/cwtools-action@v1.1.0 with: game: hoi4 locLanguages: "english spanish russian" @@ -115,7 +115,7 @@ Which languages to check localisation for, space separated, lowercase (eg. `engl Whether to not use cache, and instead treat the project as a vanilla game installation folder - if you are a modder, you probably should not be using this. If True, cache input will be ignored (Default: False, set to anything other than 0 or blank for True) ```yml - - uses: cwtools/cwtools-action@v1.0.0 + - uses: cwtools/cwtools-action@v1.1.0 with: game: hoi4 vanillaMode: "1" @@ -128,7 +128,7 @@ Whether to not use cache, and instead treat the project as a vanilla game instal What rules repository to use (Default: `https://github.com/cwtools/cwtools-$INPUT_GAME-config.git`) ```yml - - uses: cwtools/cwtools-action@v1.0.0 + - uses: cwtools/cwtools-action@v1.1.0 with: game: hoi4 rules: "https://github.com/Yard1/cwtools-hoi4-config.git" @@ -141,7 +141,7 @@ What rules repository to use (Default: `https://github.com/cwtools/cwtools-$INPU What ref on rules repo to checkout (Default: `master`) ```yml - - uses: cwtools/cwtools-action@v1.0.0 + - uses: cwtools/cwtools-action@v1.1.0 with: game: hoi4 rulesRef: "1.0.0" @@ -154,7 +154,7 @@ What ref on rules repo to checkout (Default: `master`) By default will only annotate changed files in a push or a pull request. In order to annotate all files set `changedFilesOnly` input to `"0"`. ```yml - - uses: cwtools/cwtools-action@v1.0.0 + - uses: cwtools/cwtools-action@v1.1.0 with: game: hoi4 changedFilesOnly: "0" @@ -167,7 +167,7 @@ By default will only annotate changed files in a push or a pull request. In orde You can choose to suppress annotations with chosen CWTools offence category IDs (`CW###`) per GitHub severity type (failure, warning, notice). ```yml - - uses: cwtools/cwtools-action@v1.0.0 + - uses: cwtools/cwtools-action@v1.1.0 with: game: hoi4 suppressedOffenceCategories: '{"failure":["CW110", "CW210"], "warning":[], "notice":[]}' # will suppress CW110 and CW210 category failures, but will show those for warnings and notices @@ -180,7 +180,7 @@ You can choose to suppress annotations with chosen CWTools offence category IDs You can choose to suppress annotations completely in certain files. Use paths from root of repository, make sure to have no trailing whitespace. Globbing is not supported. ```yml - - uses: cwtools/cwtools-action@v1.0.0 + - uses: cwtools/cwtools-action@v1.1.0 with: game: hoi4 suppressedFiles: '["common/scripted_effects/my_effects.txt", "events/EventFile.txt"]' # will completely suppress any annotations in those two files @@ -193,7 +193,7 @@ You can choose to suppress annotations completely in certain files. Use paths fr Which CWTools.CLI version to use (Default: latest stable). ```yml - - uses: cwtools/cwtools-action@v1.0.0 + - uses: cwtools/cwtools-action@v1.1.0 with: game: hoi4 CWToolsCLIVersion: '0.0.7' diff --git a/examples/GitHub_CWToolsCI.yml b/examples/GitHub_CWToolsCI.yml index 2a0557b..8a3b522 100644 --- a/examples/GitHub_CWToolsCI.yml +++ b/examples/GitHub_CWToolsCI.yml @@ -36,7 +36,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: cwtools/cwtools-action@v1.0.0 + - uses: cwtools/cwtools-action@v1.1.0 with: game: hoi4 locLanguages: "english russian" # change this to what localisation languages your mod supports @@ -44,7 +44,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload output.json if: always() - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@v1.1.0 with: name: cwtools_output path: output.json diff --git a/examples/GitLab_CWToolsCI.yml b/examples/GitLab_CWToolsCI.yml index 4e0f5bc..13d172a 100644 --- a/examples/GitLab_CWToolsCI.yml +++ b/examples/GitLab_CWToolsCI.yml @@ -29,7 +29,7 @@ CWTools_CI: stage: CWTools_CI only: [merge_requests] script: - - wget -O - -q https://raw.githubusercontent.com/cwtools/cwtools-action/v1.0.0/lib/gitlab_setup.sh | sh -s + - wget -O - -q https://raw.githubusercontent.com/cwtools/cwtools-action/v1.1.0/lib/gitlab_setup.sh | sh -s # Optional, expose the CWTools errors in JSON artifacts: diff --git a/lib/gitlab_setup.sh b/lib/gitlab_setup.sh index ff23bcd..5e520c1 100644 --- a/lib/gitlab_setup.sh +++ b/lib/gitlab_setup.sh @@ -4,7 +4,7 @@ if [ -z "$INPUT_GAME" ] || [ "$INPUT_GAME" = "" ]; then fi if [ -z "$INPUT_CWTOOLSACTIONREF" ] || [ "$INPUT_CWTOOLSACTIONREF" = "" ]; then - INPUT_CWTOOLSACTIONREF="v1.0.0" + INPUT_CWTOOLSACTIONREF="v1.1.0" fi if [ -z "$INPUT_REVIEWDOGREF" ] || [ "$INPUT_REVIEWDOGREF" = "" ]; then