forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.56 KB
/
autobump_rn.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Autobump Version
on:
push:
branches:
- master
permissions:
pull-requests: write
contents: write
jobs:
autobump_rn_version:
runs-on: ubuntu-latest
concurrency: autobump-version
if: github.repository == 'demisto/content' && startsWith(github.head_ref, 'contrib/') == false
steps:
- name: Print out context
run: |
echo "$GITHUB_CONTEXT"
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Setup Poetry
uses: Gr1N/setup-poetry@v9
- name: Install python dependencies
run: |
poetry install --with ci
- name: set pythonpath
run: |
echo "PYTHONPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
- name: Check conflicts and add release notes
env:
CONTENTBOT_GH_ADMIN_TOKEN: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }}
XSOAR_BOT_TEST_CONTENT: ${{ secrets.XSOAR_BOT_TEST_CONTENT }}
RUN_ID: ${{github.run_id}}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Content Bot"
echo "Someone merged to master. Starting to check if conflicts in release notes created."
poetry run python .github/github_workflow_scripts/autobump_rn.py -g $CONTENTBOT_GH_ADMIN_TOKEN -r $RUN_ID