From f36a9a11c5e5a2ee50ca3c9189ed6072d8e77e09 Mon Sep 17 00:00:00 2001 From: Espen Carlsen Date: Thu, 26 Oct 2023 11:50:31 +0000 Subject: [PATCH 1/2] chore: added the REMOVE_SUSPENDED_USERS variable to the action --- action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/action.yml b/action.yml index 5ec49a77f..d40faa3f6 100644 --- a/action.yml +++ b/action.yml @@ -17,6 +17,9 @@ inputs: remove-users: description: 'Set to TRUE to remove users from the github organisation' required: false + remove-suspended_users: + description: 'Set to TRUE to remove suspended users from the github organisation' + required: false exit-code-on-missmatch: description: 'Exit code to use when there is a mismatch, useful when combined with `ADD_USERS` and `REMOVE_USERS` to be used in a dry-run mode' required: false @@ -57,6 +60,7 @@ runs: -e GOOGLE_CREDENTIALS="$GOOGLE_CREDENTIALS" \ -e ADD_USERS="$ADD_USERS" \ -e REMOVE_USERS="$REMOVE_USERS" \ + -e REMOVE_SUSPENDED_USERS="$REMOVE_SUSPENDED_USERS" \ -e EXIT_CODE_ON_MISMATCH="$EXIT_CODE_ON_MISMATCH" \ -e GITHUB_ORG="$GITHUB_ORG" \ -e GITHUB_APP_ID="$GITHUB_APP_ID" \ @@ -70,6 +74,7 @@ runs: GOOGLE_CREDENTIALS: ${{ inputs.google-credentials }} ADD_USERS: ${{ inputs.add-users }} REMOVE_USERS: ${{ inputs.remove-users }} + REMOVE_SUSPENDED_USERS: ${{ inputs.remove-suspended_users }} EXIT_CODE_ON_MISMATCH: ${{ inputs.exit-code-on-missmatch }} GITHUB_ORG: ${{ inputs.github-org }} GITHUB_APP_ID: ${{ inputs.github-app-id }} From 5001d114d1fe40594a77b525ad6b7d5d0185e1d1 Mon Sep 17 00:00:00 2001 From: Espen Carlsen Date: Thu, 26 Oct 2023 11:54:38 +0000 Subject: [PATCH 2/2] chore: bumped version to 1.3.1 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index d40faa3f6..b248b977c 100644 --- a/action.yml +++ b/action.yml @@ -67,7 +67,7 @@ runs: -e GITHUB_INSTALLATION_ID="$GITHUB_INSTALLATION_ID" \ -e GITHUB_PRIVATE_KEY="$GITHUB_PRIVATE_KEY" \ -e IGNORED_USERS="$IGNORED_USERS" \ - docker.pkg.github.com/remarkable/githubusermanager/githubusermanager:v1.1.9 + docker.pkg.github.com/remarkable/githubusermanager/githubusermanager:v1.3.1 shell: bash env: GOOGLE_EMAIL_ADDRESS: ${{ inputs.google-email-address }}