revert testing changes

This commit is contained in:
SnskArora 2025-03-22 19:34:47 +05:30
parent c4771a8793
commit 3f693b4f1d
No known key found for this signature in database
GPG key ID: 6EC7FEA48093AB59
6 changed files with 6 additions and 30 deletions

View file

@ -5,7 +5,6 @@ on:
push:
branches:
- main
- '*'
paths-ignore:
- '**/*.md'
pull_request:
@ -27,31 +26,12 @@ jobs:
- name: Refresh module hashsums
run: make tidy
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: snskArora
password: ${{ secrets.grained_auth }}
- name: Build
run: make build
run: |
make build
env:
VERSION: latest
# - name: Push
# run: make push
# env:
# VERSION: latest
- name: Test
run: make test
- name: Lint

View file

@ -5,7 +5,7 @@ RUN go mod tidy
RUN CGO_ENABLED=0 go build -o app .
FROM alpine:3.14
LABEL org.opencontainers.image.source https://github.com/snskArora/manual-approval
LABEL org.opencontainers.image.source https://github.com/trstringer/manual-approval
RUN apk update && apk add ca-certificates
COPY --from=builder /var/app/app /var/app/app
CMD ["/var/app/app"]

View file

@ -1,4 +1,4 @@
IMAGE_REPO=ghcr.io/snskarora/manual-approval
IMAGE_REPO=ghcr.io/trstringer/manual-approval
TARGET_PLATFORM=linux/amd64
.PHONY: tidy
@ -12,7 +12,6 @@ build:
exit 1; \
fi
docker build --platform $(TARGET_PLATFORM) -t $(IMAGE_REPO):$$VERSION .
docker push $(IMAGE_REPO):$(VERSION)
.PHONY: push
push:

View file

@ -50,4 +50,4 @@ outputs:
description: The status of the approval ("approved" or "denied")
runs:
using: docker
image: docker://ghcr.io/snskarora/manual-approval:latest
image: docker://ghcr.io/trstringer/manual-approval:latest

View file

@ -85,9 +85,6 @@ func (a *approvalEnvironment) createApprovalIssue(ctx context.Context) error {
formatAcceptedWords(deniedWords),
)
// if a.issueBody != "" {
// issueBody = fmt.Sprintf(">%s\n>\n%s", a.issueBody, issueBody)
// }
issueBody = fmt.Sprintf(">[!NOTE]\n%s", issueBody)
var err error

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/snskArora/manual-approval
module github.com/trstringer/manual-approval
go 1.17