Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

CI: Do not try to run release script from fork (#685)

Kilian Lieretbbf78bfee3be
diff --git a/.github/workflows/release-dockerhub-nightly.yaml b/.github/workflows/release-dockerhub-nightly.yaml
index 504d25e3..90f90d62 100644
--- a/.github/workflows/release-dockerhub-nightly.yaml
+++ b/.github/workflows/release-dockerhub-nightly.yaml
@@ -20,4 +20,5 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Run release script
+ if: (github.ref == 'refs/heads/main') && (github.repository == 'princeton-nlp/SWE-agent')
run: ./release_dockerhub.sh sweagent latest
\ No newline at end of file