Selaa lähdekoodia

Put pull request back in and require upload

CPK 6 kuukautta sitten
vanhempi
commit
25af848351
1 muutettua tiedostoa jossa 11 lisäystä ja 10 poistoa
  1. 11 10
      .github/workflows/localization.yml

+ 11 - 10
.github/workflows/localization.yml

@@ -53,6 +53,7 @@ jobs:
   download:
     name: "Download changes"
     runs-on: ubuntu-latest
+    needs: upload
     if: ${{ inputs.mode != 'Upload only' }}
     steps:
       - name: Checkout
@@ -77,14 +78,14 @@ jobs:
         if: ${{ steps.download-languages.outputs.HAS_CHANGES == 'true' }}
         run: |
           git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)
-      # - name: Create Pull Request
-      #   if: ${{ steps.download-languages.outputs.HAS_CHANGES == 'true' }}
-      #   run: |
-      #     gh pr create --title "Language Update ${{ github.run_number }}" \
-      #           --body "This PR was created automatically.
+      - name: Create Pull Request
+        if: ${{ steps.download-languages.outputs.HAS_CHANGES == 'true' }}
+        run: |
+          gh pr create --title "Language Update ${{ github.run_number }}" \
+                --body "This PR was created automatically.
 
-      #           https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs/${{ github.job }}" \
-      #           --base master \
-      #           --head $(git rev-parse --abbrev-ref HEAD)
-      #   env:
-      #     GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+                https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs/${{ github.job }}" \
+                --base master \
+                --head $(git rev-parse --abbrev-ref HEAD)
+        env:
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}