Skip to content

ADD acodeninja/[email protected]

ADD acodeninja/[email protected] #9931

name: Register Buildpack
"on":
issues:
types:
- opened
jobs:
add:
if: ${{ startsWith(github.event.issue.title, 'ADD') }}
runs-on: ubuntu-latest
steps:
- uses: docker://ghcr.io/buildpacks/actions/registry/compute-metadata:5.7.4
id: metadata
with:
issue: ${{ toJSON(github.event.issue) }}
- uses: docker://ghcr.io/buildpacks/actions/registry/verify-namespace-owner:5.7.4
id: verify-namespace-owner
with:
token: ${{ secrets.DISTRIBUTION_GITHUB_TOKEN }}
owner: ${{ secrets.NAMESPACES_OWNER }}
repository: ${{ secrets.NAMESPACES_REPOSITORY }}
namespace: ${{ steps.metadata.outputs.namespace }}
user: ${{ toJSON(github.event.issue.user) }}
add-if-missing: true
- uses: docker://ghcr.io/buildpacks/actions/buildpackage/verify-metadata:5.7.4
with:
token: ${{ secrets.DISTRIBUTION_GITHUB_TOKEN }}
id: ${{ steps.metadata.outputs.id }}
version: ${{ steps.metadata.outputs.version }}
address: ${{ steps.metadata.outputs.address }}
- uses: docker://ghcr.io/buildpacks/actions/registry/add-entry:5.7.4
with:
token: ${{ secrets.DISTRIBUTION_GITHUB_TOKEN }}
owner: ${{ secrets.INDEX_OWNER }}
repository: ${{ secrets.INDEX_REPOSITORY }}
namespace: ${{ steps.metadata.outputs.namespace }}
name: ${{ steps.metadata.outputs.name }}
version: ${{ steps.metadata.outputs.version }}
address: ${{ steps.metadata.outputs.address }}
- uses: andymckay/[email protected]
with:
repo-token: ${{ secrets.DISTRIBUTION_GITHUB_TOKEN }}
add-labels: succeeded
- uses: peter-evans/[email protected]
with:
comment: |
✅ Successfully added buildpack. For more details, see the [action log][action-uri].
[action-uri]: https://github.com/${{ secrets.INDEX_OWNER }}/${{ secrets.INDEX_REPOSITORY }}/actions/runs/${{ github.run_id }}
- uses: andymckay/[email protected]
if: ${{ failure() }}
with:
repo-token: ${{ secrets.DISTRIBUTION_GITHUB_TOKEN }}
add-labels: failed
- uses: peter-evans/close-issue@v1
if: ${{ failure() }}
with:
comment: |
🔴 Failed to add buildpack. For more details, see the [action log][action-uri].
🔃 If you feel this was in error, you may try again by creating a new issue.
📬 If the problem persists or need assistance, you may comment on this issue or contact the maintainers via email at `[email protected]`.
[action-uri]: https://github.com/${{ secrets.INDEX_OWNER }}/${{ secrets.INDEX_REPOSITORY }}/actions/runs/${{ github.run_id }}
yank:
if: ${{ startsWith(github.event.issue.title, 'YANK') }}
runs-on: ubuntu-latest
steps:
- uses: docker://ghcr.io/buildpacks/actions/registry/compute-metadata:5.7.4
id: metadata
with:
issue: ${{ toJSON(github.event.issue) }}
- uses: docker://ghcr.io/buildpacks/actions/registry/verify-namespace-owner:5.7.4
id: verify-namespace-owner
with:
token: ${{ secrets.DISTRIBUTION_GITHUB_TOKEN }}
owner: ${{ secrets.NAMESPACES_OWNER }}
repository: ${{ secrets.NAMESPACES_REPOSITORY }}
namespace: ${{ steps.metadata.outputs.namespace }}
user: ${{ toJSON(github.event.issue.user) }}
- uses: docker://ghcr.io/buildpacks/actions/registry/yank-entry:5.7.4
with:
token: ${{ secrets.DISTRIBUTION_GITHUB_TOKEN }}
owner: ${{ secrets.INDEX_OWNER }}
repository: ${{ secrets.INDEX_REPOSITORY }}
namespace: ${{ steps.metadata.outputs.namespace }}
name: ${{ steps.metadata.outputs.name }}
version: ${{ steps.metadata.outputs.version }}
- uses: andymckay/[email protected]
with:
repo-token: ${{ secrets.DISTRIBUTION_GITHUB_TOKEN }}
add-labels: succeeded
- uses: peter-evans/[email protected]
with:
comment: |
✅ Successfully yanked buildpack. For more details, see the [action log][action-uri].
[action-uri]: https://github.com/${{ secrets.INDEX_OWNER }}/${{ secrets.INDEX_REPOSITORY }}/actions/runs/${{ github.run_id }}
- uses: andymckay/[email protected]
if: ${{ failure() }}
with:
repo-token: ${{ secrets.DISTRIBUTION_GITHUB_TOKEN }}
add-labels: failed
- uses: peter-evans/[email protected]
if: ${{ failure() }}
with:
comment: |
🔴 Failed to yank buildpack. For more details, see the [action log][action-uri].
🔃 If you feel this was in error, you may try again by creating a new issue.
📬 If the problem persists or need assistance, you may comment on this issue or contact the maintainers via email at `[email protected]`.
[action-uri]: https://github.com/${{ secrets.INDEX_OWNER }}/${{ secrets.INDEX_REPOSITORY }}/actions/runs/${{ github.run_id }}