diff --git a/.github/workflows/docker.yml b/.github/workflows/docker-base.yml similarity index 100% rename from .github/workflows/docker.yml rename to .github/workflows/docker-base.yml diff --git a/.github/workflows/docker-pr.yml b/.github/workflows/docker-pr.yml new file mode 100644 index 000000000..ae0119625 --- /dev/null +++ b/.github/workflows/docker-pr.yml @@ -0,0 +1,8 @@ +name: Docker Pull Request +on: + workflow_run: + workflows: [Config] + +jobs: + build: + uses: WatWowMap/ReactMap/.github/workflows/docker-base.yml@main diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml new file mode 100644 index 000000000..6a7a86edb --- /dev/null +++ b/.github/workflows/docker-release.yml @@ -0,0 +1,8 @@ +name: Docker Release +on: + release: + types: [prereleased, released] + +jobs: + build: + uses: WatWowMap/ReactMap/.github/workflows/docker-base.yml@main diff --git a/.github/workflows/locales.yml b/.github/workflows/locales.yml index b732a46bb..be4a8c384 100644 --- a/.github/workflows/locales.yml +++ b/.github/workflows/locales.yml @@ -9,6 +9,8 @@ env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} +permissions: write-all + jobs: locales: name: Locales Sync @@ -40,6 +42,9 @@ jobs: fi - name: Commit and push changes if: ${{ env.changes_exist == 'true' }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + HUSKY: 0 run: | git add --all git commit --message "chore: sync locales" diff --git a/.github/workflows/release-develop.yml b/.github/workflows/release-develop.yml index dfd43ed7f..cc597924e 100644 --- a/.github/workflows/release-develop.yml +++ b/.github/workflows/release-develop.yml @@ -7,5 +7,5 @@ on: branches: [develop] jobs: - release-develop: + build: uses: WatWowMap/ReactMap/.github/workflows/release-base.yml@develop diff --git a/.github/workflows/release-main.yml b/.github/workflows/release-main.yml index e509c38fd..a3461a28c 100644 --- a/.github/workflows/release-main.yml +++ b/.github/workflows/release-main.yml @@ -7,5 +7,5 @@ on: branches: [main] jobs: - release-main: + build: uses: WatWowMap/ReactMap/.github/workflows/release-base.yml@main