From 6266b05b1e45e3b8a585cf929b96ca944fd3f0e6 Mon Sep 17 00:00:00 2001 From: Mateusz Sadowski Date: Thu, 26 Oct 2023 10:15:49 +0200 Subject: [PATCH] Create a job to redeoploy WR --- .github/workflows/update_wr.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/update_wr.yaml diff --git a/.github/workflows/update_wr.yaml b/.github/workflows/update_wr.yaml new file mode 100644 index 0000000..6bf43ab --- /dev/null +++ b/.github/workflows/update_wr.yaml @@ -0,0 +1,30 @@ +name: Send submodule updates to parent repo + +on: + push: + branches: + - main + +jobs: + update: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + repository: msadowski/weekly_robotics + token: ${{ secrets.WR_TOKEN }} + submodules: true + + - name: Pull & update submodules recursively + run: | + git submodule update --init --recursive + git submodule update --recursive --remote + + - name: Commit + run: | + git config user.email "actions@github.com" + git config user.name "GitHub Actions - update submodules" + git add --all + git commit -m "Update submodules" || echo "No changes to commit" + git push