6 Commits

Author SHA1 Message Date
337688a6fd Update actions/stale action to v10 2026-01-05 14:06:25 +00:00
0da69f95ac Update JasonEtco/is-sponsor-label-action action to v2 (#16)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [JasonEtco/is-sponsor-label-action](https://github.com/JasonEtco/is-sponsor-label-action) | action | major | `v1` → `v2` |

---

### Release Notes

<details>
<summary>JasonEtco/is-sponsor-label-action (JasonEtco/is-sponsor-label-action)</summary>

### [`v2`](https://github.com/JasonEtco/is-sponsor-label-action/compare/v1...v2)

[Compare Source](https://github.com/JasonEtco/is-sponsor-label-action/compare/v1...v2)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi43MS4wIiwidXBkYXRlZEluVmVyIjoiNDIuNzEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: #16
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
Co-committed-by: renovate[bot] <renovate-bot@git.tainton.uk>
2026-01-05 14:06:14 +00:00
f66e33535e Configure Renovate (#14)
Welcome to [Renovate](https://github.com/renovatebot/renovate)! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.

---
### Detected Package Files

 * `.archive/.github/workflows/autobranch.yml` (github-actions)
 * `.archive/.github/workflows/sponsors.yml` (github-actions)
 * `.archive/.github/workflows/stale.yml` (github-actions)

### What to Expect

With your current configuration, Renovate will create 2 Pull Requests:

<details>
<summary>Update actions/stale action to v10</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/actions-stale-10.x`
  - Merge into: `main`
  - Upgrade [actions/stale](https://github.com/actions/stale) to `v10`

</details>

<details>
<summary>Update JasonEtco/is-sponsor-label-action action to v2</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/jasonetco-is-sponsor-label-action-2.x`
  - Merge into: `main`
  - Upgrade [JasonEtco/is-sponsor-label-action](https://github.com/JasonEtco/is-sponsor-label-action) to `v2`

</details>

---

 Got questions? Check out Renovate's [Docs](https://docs.renovatebot.com/), particularly the Getting Started section.
If you need any further assistance then you can also [request help here](https://github.com/renovatebot/renovate/discussions).

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

<!--renovate-config-hash:94693a990c975907e7f13da3309b9d56ba02b3983519b41786edf5cf031e457c-->

Reviewed-on: #14
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
Co-committed-by: renovate[bot] <renovate-bot@git.tainton.uk>
2026-01-05 13:48:40 +00:00
43db46bcca feat(migration): Migrate to Gitea 2026-01-05 13:42:22 +00:00
2a31da6305 📝 Remove section on now-defunct mailing list 2020-08-25 18:00:18 +01:00
db150a3973 Automatic update checking
Signed-off-by: Luke Tainton <luke@tainton.uk>
2020-08-07 23:17:24 +01:00
9 changed files with 44 additions and 11 deletions

View File

@@ -9,6 +9,6 @@ jobs:
name: is-sponsor-label
runs-on: ubuntu-latest
steps:
- uses: JasonEtco/is-sponsor-label-action@v1
- uses: JasonEtco/is-sponsor-label-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v1
- uses: actions/stale@v10
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has been marked as stale due to inactivity. If this issue is still ongoing, please leave a comment.'

1
.gitea/CODEOWNERS Normal file
View File

@@ -0,0 +1 @@
* @luke

View File

@@ -15,20 +15,16 @@ This module uses PowerShell, which is pre-installed on Windows. If you're not on
```
1. Run `Import-TeamsUsers -File <FILE>`, where `<FILE>` is the path to the CSV file. You can add the `-Create` flag if you want to create a new team first.
<details>
<summary>If you can't run non-signed scripts</summary>
If your policy requires scripts to be digitally signed, run
### If you can't run non-signed scripts
If your policy requires scripts to be digitally signed, run
```powershell
Set-ExecutionPolicy Bypass -Scope Process
```
then try running the command again. You may require administrative rights to change the Execution Policy.
</details>
# Need help?
If you need assistance, please try the following:
1. See the help documentation by running `Get-Help Import-TeamsUsers`.
1. Check closed issues [here](https://github.com/luketainton/Import-TeamsUsers/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed).
1. Open an issue [here](https://github.com/luketainton/Import-TeamsUsers/issues/new).
Alternatively, you can subscribe [here](https://lists.tainton.uk/mailman/listinfo/tue-users_lists.tainton.uk) to receive general announcements, ask questions, and assist other users. You must be subscribed to the list to be able to send email to it (I am working on this!)
1. Check closed issues [here](https://git.tainton.uk/repos/TeamsUserEnroller/issues?type=all&state=closed).
1. Open an issue [here](https://git.tainton.uk/repos/TeamsUserEnroller/issues/new).

View File

@@ -12,7 +12,7 @@
# RootModule = ''
# Version number of this module.
ModuleVersion = '2.2.0'
ModuleVersion = '2.2.1'
# Supported PSEditions
# CompatiblePSEditions = @()

View File

@@ -39,6 +39,39 @@ Function Import-TeamsUsers {
Begin {
$ErrorActionPreference = 'Stop'
##### CHECK FOR NEW VERSION #####
Try {
# Get information from GitHub Releases
$releases = Invoke-RestMethod -Method Get -Uri "https://api.github.com/repos/luketainton/TeamsUserEnroller/releases";
$rel = $releases[0];
$latest_version = $rel.tag_name -replace 'v', '';
$latest_version_changes = $rel.body;
# Get currently installed version
$current_version = (Get-Module TeamsUserEnroller | Select-Object Version).Version;
# Compare versions and alert user if newer version available
if ($current_version -lt $latest_version) {
Write-Host -ForegroundColor Yellow "A new version of TeamsUserEnroller has been released!";
Write-Host -ForegroundColor Yellow "Latest version: $latest_version";
Write-Host -ForegroundColor Yellow "Installed version: $current_version";
Write-Host -ForegroundColor Yellow "`n$latest_version_changes";
$Consent = Read-Host -Prompt "`nWould you like to update now? [y/N]"
If ($Consent -eq "y" -Or $Consent -eq "Y") {
Update-Module -Name TeamsUserEnroller -RequiredVersion "2.2.0";
$after_update_ver = (Get-Module TeamsUserEnroller | Select-Object Version).Version;
if ($after_update_ver -eq $latest_version) {
Write-Host -ForegroundColor Green "Update completed.";
} Else {
Write-Host -ForegroundColor Red "Update failed. Please update manually.";
}
}
}
} Catch {
Write-Host -ForegroundColor Red "An error occurred while checking for updates. Continuing.";
}
##### IMPORT CSV FILE #####
Try {
$ImportCmd = "Import-CSV $File"

3
renovate.json Normal file
View File

@@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}