Try using hub
@@ -14,8 +14,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@master
- - name: Remove nightly tag and release
- run: git push --delete origin nightly
+ - name: Install hub
+ uses: geertvdc/setup-hub@master
+
+ - name: Delete nightly with hub
+ env:
+ GITHUB_USER: ${{ secrets.GITHUB_USER }}
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ hub release delete nightly
- name: Create Nightly
id: create_nightly
