Permalink
Cannot retrieve contributors at this time
47 lines (44 sloc)
1.65 KB
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/.github/workflows/update-supported-enterprise-server-versions.yml
View runs Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Update Supported Enterprise Server Versions | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
update-supported-enterprise-server-versions: | |
name: Update Supported Enterprise Server Versions | |
timeout-minutes: 45 | |
runs-on: ubuntu-latest | |
if: ${{ github.repository == 'github/codeql-action' }} | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.7" | |
- name: Checkout CodeQL Action | |
uses: actions/checkout@v3 | |
- name: Checkout Enterprise Releases | |
uses: actions/checkout@v3 | |
with: | |
repository: github/enterprise-releases | |
ssh-key: ${{ secrets.ENTERPRISE_RELEASES_SSH_KEY }} | |
path: ${{ github.workspace }}/enterprise-releases/ | |
- name: Update Supported Enterprise Server Versions | |
run: | | |
cd ./.github/workflows/update-supported-enterprise-server-versions/ | |
python3 -m pip install pipenv | |
pipenv install | |
pipenv run ./update.py | |
rm --recursive "$ENTERPRISE_RELEASES_PATH" | |
npm run build | |
env: | |
ENTERPRISE_RELEASES_PATH: ${{ github.workspace }}/enterprise-releases/ | |
- name: Commit Changes | |
uses: peter-evans/create-pull-request@c7f493a8000b8aeb17a1332e326ba76b57cb83eb # v3.4.1 | |
with: | |
commit-message: Update supported GitHub Enterprise Server versions. | |
title: Update supported GitHub Enterprise Server versions. | |
body: "" | |
author: GitHub <noreply@github.com> | |
branch: update-supported-enterprise-server-versions | |
draft: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |