Sync Code of Conduct #544
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync Code of Conduct | |
on: | |
schedule: | |
- cron: '0 0 * * *' # every day at midnight | |
permissions: | |
contents: write # to push local changes (gr2m/create-or-update-pull-request-action) | |
pull-requests: write # to create a PR (gr2m/create-or-update-pull-request-action) | |
jobs: | |
code-of-conduct: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'adoptium' | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
ref: 'main' | |
- name: Replace CODE_OF_CONDUCT.md | |
run: | | |
rm -rf CODE_OF_CONDUCT.md | |
wget https://raw.githubusercontent.com/eclipse/.github/master/CODE_OF_CONDUCT.md | |
- uses: gr2m/create-or-update-pull-request-action@dc1726cbf4dd3ce766af4ec29cfb660e0125e8ee # v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.ADOPTIUM_TEMURIN_BOT_TOKEN }} | |
with: | |
title: "Update CODE_OF_CONDUCT.md" | |
body: "This is an automatically generated pull request, an update has been made to the CODE_OF_CONDUCT.md file." | |
branch: "code_of_conduct" | |
commit-message: "update CODE_OF_CONDUCT.md" | |
author: "eclipse-temurin-bot <[email protected]>" |