Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hakadoriya-actions/setup-gh-xz
GitHub Actions for setting up gh extension gh-xz.
https://github.com/hakadoriya-actions/setup-gh-xz
actions gh
Last synced: 2 days ago
JSON representation
GitHub Actions for setting up gh extension gh-xz.
- Host: GitHub
- URL: https://github.com/hakadoriya-actions/setup-gh-xz
- Owner: hakadoriya-actions
- License: apache-2.0
- Created: 2025-01-09T14:38:29.000Z (5 days ago)
- Default Branch: main
- Last Pushed: 2025-01-09T15:15:20.000Z (5 days ago)
- Last Synced: 2025-01-09T16:22:46.499Z (5 days ago)
- Topics: actions, gh
- Homepage: https://github.com/hakadoriya-actions/setup-gh-xz
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Setup [`gh-xz`](https://github.com/hakadoriya/gh-xz)
GitHub Actions for setting up gh extension [`gh-xz`](https://github.com/hakadoriya/gh-xz).
## Notes
In GitHub Actions, `gh extension install` cannot be executed (due to the restricted GITHUB_TOKEN, git clone fails with 404).
So, clone with `actions/checkout` and then move to the gh extension directory.
ref:## Example
```yml
name: exampleon:
pull_request:jobs:
example:
if: github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: hakadoriya-actions/[email protected]
- name: Run gh xz
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
gh xz put-anchored-comment ${{ github.repository }} ${{ github.event.number }} anchor1 "This anchored comment is posted by gh-xz."
```