Skip to content

add git push to artifacts #5

add git push to artifacts

add git push to artifacts #5

name: "Prepare Artifacts"
on:
workflow_call:
jobs:
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

Check failure on line 10 in .github/workflows/forge-artifacts.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/forge-artifacts.yaml

Invalid workflow file

You have an error in your yaml syntax on line 10
forge-artifacts:
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"
- name: "Install NodeJS"
uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9.0.6
run_install: false
- name: "Install the Node.js dependencies"
run: "pnpm install"
- name: "Prepare the contract artifacts"
run: "./shell/prepare-artifacts.sh"
- name: "Store the contract artifacts in CI"
uses: "actions/upload-artifact@v4"
with:
name: "contract-artifacts"
path: "artifacts"
- name: "Commit and push artifact"
uses: stefanzweifel/git-auto-commit-action@v5
- name: "Add summary"
run: |
echo "## Build result" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY