Compare commits

...

5 Commits
hcdc2 ... hcdc8

Author SHA1 Message Date
d3a56c04b5 Enable HCDC 2025-09-26 07:41:03 +00:00
6f5e895214 Disable hcdc
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2025-09-25 13:36:42 +00:00
605b8bd9b2 switch to local branch instead of detached head state for HCDC
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2025-09-25 13:21:14 +00:00
aa6c3af702 Switch PR target for hcdc secrets
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2025-09-25 13:11:11 +00:00
68ad3e5adf fix pull hcdc
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2025-09-25 12:46:00 +00:00

View File

@ -1,22 +1,54 @@
name: Run HCDC
on:
pull_request:
pull_request_target:
types: [opened, reopened, synchronize, edited]
permissions:
contents: read
pull-requests: write
jobs:
run-hcdc:
runs-on: ubuntu-latest
steps:
- name: Checkout PR head
- name: Checkout PR head (same repo)
if: ${{ gitea.event.pull_request.head.repo.full_name == gitea.repository }}
uses: https://github.com/actions/checkout@v4
with:
repository: ${{ gitea.event.pull_request.head.repo.full_name }}
repository: ${{ gitea.repository }}
ref: ${{ gitea.event.pull_request.head.ref }}
fetch-depth: 0
persist-credentials: false
token: ${{ gitea.token }}
- name: Create local branch for PR head (same repo)
if: ${{ gitea.event.pull_request.head.repo.full_name == gitea.repository }}
shell: bash
run: |
set -euo pipefail
git checkout -B "${{ gitea.event.pull_request.head.ref }}" --no-track
git branch --show-current
- name: Checkout PR head (fork via PR ref)
if: ${{ gitea.event.pull_request.head.repo.full_name != gitea.repository }}
uses: https://github.com/actions/checkout@v4
with:
repository: ${{ gitea.repository }}
ref: refs/pull/${{ gitea.event.pull_request.number }}/head
fetch-depth: 0
persist-credentials: false
token: ${{ gitea.token }}
- name: Create local branch for PR head (fork)
if: ${{ gitea.event.pull_request.head.repo.full_name != gitea.repository }}
shell: bash
run: |
set -euo pipefail
git checkout -B "${{ gitea.event.pull_request.head.ref }}" --no-track
git branch --show-current
- name: Checkout base
uses: https://github.com/actions/checkout@v4
with:
@ -24,9 +56,9 @@ jobs:
ref: ${{ gitea.event.pull_request.base.ref }}
path: base
fetch-depth: 0
persist-credentials: false
token: ${{ gitea.token }}
- name: Get OTC token
id: otc
uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/get-otc-token@v1
@ -46,7 +78,7 @@ jobs:
python-version: "3.12"
- name: Comment in case there's an error
if: failure()
if: ${{ failure() && steps.hcdc.outcome == 'failure' }}
env:
GITEA_URL: ${{ gitea.server_url }}
REPO: ${{ gitea.repository }}