Skip to content

Commit

Permalink
Fix actions after repository transfer (#269)
Browse files Browse the repository at this point in the history
* Fix actions after repository transfer

- always run on public runners
- use `pull_request` as an event trigger

* Drop additional action labels
  • Loading branch information
damyan authored Feb 23, 2024
1 parent ea4fe91 commit 152cef7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/auto-merge.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Dependabot auto-approve
on: pull_request_target
on: pull_request

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: self-hosted
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- v*
paths-ignore:
- '**.md'
pull_request_target:
pull_request:
branches:
- main
paths-ignore:
Expand All @@ -23,7 +23,7 @@ env:

jobs:
go-lint:
runs-on: [ self-hosted, Linux, X64 ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -46,7 +46,7 @@ jobs:
args: -e S1008 --timeout 15m

go-test:
runs-on: [ self-hosted, Linux, X64 ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -67,7 +67,7 @@ jobs:
run: make test

kustomize-test:
runs-on: [ self-hosted, Linux, X64 ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -84,7 +84,7 @@ jobs:

docker-build:
needs: [ kustomize-test, go-lint, go-test ]
runs-on: [ self-hosted, Linux, X64 ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
push:
branches:
- main
pull_request_target:
pull_request:

jobs:
update_release_draft:
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/size-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [workflow_dispatch, pull_request]

jobs:
size-label:
runs-on: self-hosted
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
Expand Down

0 comments on commit 152cef7

Please sign in to comment.