Skip to content

Commit

Permalink
Test rebuild trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
goodov committed Jul 25, 2024
1 parent e14aa77 commit 3d10722
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/generate-test-seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,38 @@ name: Generate Test Seed

on:
pull_request:
types: [opened, synchronize, reopened, labeled]
paths:
- 'seed/seed.json'
- 'studies/**'

jobs:
build:
runs-on: ubuntu-latest
if: github.event.action != 'labeled' || github.event.label.name == 'CI/rebuild'

env:
ACTION_RUN_URL: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
REMOTE_SEED_PATH: 'pull/${{ github.event.pull_request.number }}/seed'
SEED_VERSION: 'pull/${{ github.event.pull_request.number }}@${{ github.event.pull_request.head.sha }}'

steps:
- name: Remove CI/rebuild label
if: contains(github.event.pull_request.labels.*.name, 'CI/rebuild')
env:
GH_TOKEN: ${{ github.token }}
run: gh pr edit ${{ github.event.pull_request.number }} --repo ${{ github.repository }}--remove-label 'CI/rebuild'

- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0

- name: Rebase on base branch
if: "!contains(github.event.pull_request.labels.*.name, 'CI/no-rebase')"
run: |
git fetch origin "${{ github.event.pull_request.base.sha }}"
git rebase FETCH_HEAD
- name: Setup Python
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5
with:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test-src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@ name: Tracker&Griffin tests

on:
pull_request:
types: [opened, synchronize, reopened, labeled]
merge_group:

jobs:
build:
runs-on: ubuntu-latest
if: github.event.action != 'labeled' || github.event.label.name == 'CI/rebuild'

steps:
- name: Remove CI/rebuild label
if: github.event.action == 'labeled' && github.event.label.name == 'CI/rebuild'
env:
GH_TOKEN: ${{ github.token }}
run: gh pr edit ${{ github.event.pull_request.number }} --remove-label 'CI/rebuild'

- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion seed/seed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2999,5 +2999,5 @@
"name": "BraveP3ANebulaRelease"
}
],
"version": "1"
"version": "2"
}

0 comments on commit 3d10722

Please sign in to comment.