Skip to content

Commit e4b92a0

Browse files
committed
Use CI GITHUB_TOKEN + filter out archived apps
1 parent 8772272 commit e4b92a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/get_rust_apps.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ledgered.github import GitHubLedgerHQ, NoManifestException
1+
from ledgered.github import GitHubLedgerHQ, NoManifestException, Condition
22
from github.GithubException import GithubException
33

44
import sys
@@ -9,12 +9,12 @@
99
sys.exit(1)
1010

1111
ledger_devices = ["nanos+", "nanox", "stax", "flex"]
12-
filtered_apps = ["app-kadena-legacy", "app-pocket", "app-age", "app-provenance"]
12+
filtered_apps = ["app-kadena-legacy", "app-pocket"]
1313

1414
# Retrieve all apps on LedgerHQ GitHub organization
1515
token = sys.argv[1]
1616
gh = GitHubLedgerHQ(token)
17-
apps=gh.apps
17+
apps=gh.apps.filter(archived=Condition.WITHOUT)
1818

1919
rust_apps = []
2020
exclude_apps = []

.github/workflows/reusable_build_all_apps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Get all rust apps
5858
id: get_rust_apps
5959
run: |
60-
python .github/workflows/get_rust_apps.py ${{ secrets.GH_TOKEN }}
60+
python .github/workflows/get_rust_apps.py ${{ secrets.GITHUB_TOKEN }}
6161
echo "rust_apps=$(cat rust_apps.json)" >> $GITHUB_OUTPUT
6262
echo "exclude_apps=$(cat exclude_apps.json)" >> $GITHUB_OUTPUT
6363
echo "ledger_devices=$(cat ledger_devices.json)" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)