This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Seed Nodes 🌱 | ||
on: | ||
merge_group: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- seeds/*-*.toml | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
permissions: | ||
packages: write | ||
contents: write | ||
env: | ||
CAN_ADD_VALIDATORS: ${{ env.CAN_ADD_VALIDATORS }} | ||
Check failure on line 23 in .github/workflows/seeds-check.yml GitHub Actions / Check Seed Nodes 🌱Invalid workflow file
|
||
CAN_ADD_BONDS: ${{ env.CAN_ADD_BONDS }} | ||
CAN_ADD_ACCOUNTS: ${{ env.CAN_ADD_ACCOUNTS }} | ||
jobs: | ||
pr-check: | ||
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }} | ||
name: Shallow PR check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
merge-check: | ||
runs-on: ubuntu-latest | ||
name: Deep merge check | ||
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# - uses: stefanzweifel/git-auto-commit-action@v5 | ||
# with: | ||
# commit_message: "Merged pre-genesis transaction." | ||
# add_options: '-u' | ||
main: | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
name: Rebuild graphs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
can_enqueue: | ||
needs: [pr-check] | ||
if: always() && github.event_name != 'merge_group' | ||
permissions: | ||
actions: read | ||
runs-on: ubuntu-latest | ||
steps: | ||
- env: | ||
NEEDS_JSON: "${{toJSON(needs)}}" | ||
name: Transform outcomes | ||
run: | | ||
echo "ALL_SUCCESS=$(echo "$NEEDS_JSON" | jq '. | to_entries | map([.value.result == "success", .value.result == "skipped"] | any) | all')" >> $GITHUB_ENV | ||
- name: check outcomes | ||
run: "[ $ALL_SUCCESS == true ]" | ||
can_merge: | ||
needs: [pr-check, merge-check] | ||
if: always() && github.event_name == 'merge_group' | ||
permissions: | ||
contents: read | ||
pages: write | ||
actions: read | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- env: | ||
NEEDS_JSON: "${{toJSON(needs)}}" | ||
name: Transform outcomes | ||
run: | | ||
echo "ALL_SUCCESS=$(echo "$NEEDS_JSON" | jq '. | to_entries | map([.value.result == "success", .value.result == "skipped"] | any) | all')" >> $GITHUB_ENV | ||
- name: check outcomes | ||
run: "[ $ALL_SUCCESS == true ]" |