Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registry cleanup #45

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 1 addition & 26 deletions .github/workflows/check-tapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,35 +49,10 @@ jobs:

- name: Register tapplet
id: tapp-register
uses: karczuRF/ga-test@refactor/tapp-reg-manifest-bump
uses: karczuRF/ga-test@main
with:
package-name: ${{needs.read-variables.outputs.name}}
package-version: ${{needs.read-variables.outputs.version}}

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# update-registry:
# runs-on: ubuntu-latest
# needs: check-tapp

# steps:
# - name: Checkout repository
# uses: actions/checkout@v4

# - name: Commit updated files
# id: push-commit
# run: |
# if [ ${{ needs.check-tapp.outputs.status }} ]; then
# git config user.name "${{ github.actor }}"
# git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
# git add -A
# git commit -m "Register tapplet"
# git fetch origin
# git rebase --strategy-option=theirs origin/main
# git push --force
# fi

# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# EMAIL: ${{ secrets.EMAIL }}
7 changes: 5 additions & 2 deletions .github/workflows/update-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ permissions:
contents: write

jobs:
check-tapp:
register-tapp:
runs-on: ubuntu-latest
outputs:
registry-version: ${{steps.tapp-register.outputs.registry-version}}

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -26,7 +29,7 @@ jobs:
git config user.name "${{ github.actor }}"
git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
git add -A
git commit -m "Register tapplet"
git commit -m "Update registry to v${{steps.tapp-register.outputs.registry-version}}"
git fetch origin
git rebase --strategy-option=theirs origin/main
git push --force
Expand Down
3 changes: 1 addition & 2 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Repository CODEOWNERS
@karczuRF/tapplet-example/ @karczuRF
tapp-example/ @karczuRF

57 changes: 0 additions & 57 deletions registry.manifest.json

This file was deleted.

18 changes: 0 additions & 18 deletions src/registered-tapplets/tapp-example/assets/logo.svg

This file was deleted.

35 changes: 0 additions & 35 deletions src/registered-tapplets/tapp-example/tapplet.manifest.json

This file was deleted.

29 changes: 2 additions & 27 deletions tapplets-registry.manifest.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,4 @@
{
"manifestVersion": "1.0.0",
"registeredTapplets": {
"tapp-example": {
"id": "tapp-example",
"metadata": {
"displayName": "Tapplet human readable name",
"author": {
"name": "karczuRF",
"website": "https://github.com/karczuRF"
},
"codeowners": ["karczuRF"],
"audits": [],
"category": "test",
"logoPath": "src/registered-tapplets/tapp-example/assets/logo.svg"
},
"versions": {
"0.1.0": {
"integrity": "sha512-AC2x8xfG93T4QFeKWIb2h7gohc/HzNrqZUbCXOQ54apOPbeSRN/cMSj/iVmIhJ+1NrQJeppSsJjoVVzIYmuOKg==",
"registryUrl": "https://registry.npmjs.org//tapp-example/-/tapp-example-0.1.0.tgz"
},
"1.0.2": {
"integrity": "sha512-SdcQQ5fIbmWckZc5hWrjQU5sMsqXW0sO80K0fcTW6scxPhiYJuMt3oO35PNzAIXOTt0CQOGbWNMX+x1Gic/YaA==",
"registryUrl": "https://registry.npmjs.org//tapp-example/-/tapp-example-1.0.2.tgz"
}
}
}
}
"registeredTapplets": {},
"manifestVersion": "1.0.0"
}
Loading