Skip to content

Commit

Permalink
Merge pull request #21 from camptocamp/better-message
Browse files Browse the repository at this point in the history
Better message
  • Loading branch information
sbrunner authored Nov 20, 2024
2 parents ffc9660 + d5827cd commit bb0ffb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Set the permissions:

```yaml
permissions:
# To publish Docker images on GHCR
# To publish Docker images on GHCR and on npm.pkg.github.com
packages: write
# To publish Python packages using OIDC
id-token: write
Expand Down Expand Up @@ -234,6 +234,8 @@ node:

If the repository server is `npm.pkg.github.com` we will do a login using `GITHUB_TOKEN`.

To publish on `npm.pkg.github.com` you requires the permissions are `packages: write`.

By default the package will be published only on tag.

### HELM
Expand Down
7 changes: 4 additions & 3 deletions tag_publish/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"""

import argparse
import json
import os
import os.path
import re
Expand Down Expand Up @@ -515,11 +514,13 @@ def _trigger_dispatch_events(
}

if repository:
print(f"Triggering {event_type} on {repository} with {json.dumps(published)}")
print(f"::group::Triggering {event_type} on {repository}")
github_repo = github.github.get_repo(repository)
else:
print(f"Triggering {event_type} with {json.dumps(published)}")
print(f"::group::Triggering {event_type}")
github_repo = github.repo
print(yaml.dump(published, Dumper=yaml.SafeDumper, default_flow_style=False))
print("::endgroup::")
github_repo.create_repository_dispatch(event_type, {"content": published})


Expand Down

0 comments on commit bb0ffb3

Please sign in to comment.