[bot][injective] add 1 pools #17875
Workflow file for this run
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: CI | |
on: | |
pull_request: | |
push: | |
branches: ["main"] | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository and branch | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- name: Validate data and format JSON | |
id: validate | |
run: | | |
ROOT_DIR=${{ github.workspace }} ./format.sh | |
echo "status=$?" >> $GITHUB_OUTPUT | |
- name: Commit changes | |
if: steps.validate.outputs.status == '0' | |
uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: github_actions | |
message: "chore: run format.sh" | |
automerge: | |
runs-on: ubuntu-latest | |
needs: [validate] | |
if: | | |
github.event_name == 'pull_request' && | |
github.repository == 'coinhall/yacar' | |
steps: | |
- name: auto-merge | |
uses: pascalgn/[email protected] | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
MERGE_FILTER_AUTHOR: "yacarbot[bot]" | |
MERGE_LABELS: "status: done" | |
MERGE_METHOD: "squash" |