Skip to content

Sync Code of Conduct #587

Sync Code of Conduct

Sync Code of Conduct #587

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
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 <temurin-bot@eclipse.org>"