-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (41 loc) · 1.31 KB
/
delete_branch.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
name: delete_branch
on:
workflow_dispatch:
inputs:
limit_to_repo:
descript: "if set limit to this repo"
default: ''
required: false
target_branch:
descript: "target branch"
default: 'none'
required: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: "set up system deps"
run: |
sudo apt-get update
sudo apt-get -y install yajl-tools python3 python3-pip git python3-setuptools-git python3-setuptools
sudo pip3 install git+https://github.com/metwork-framework/envtpl.git
sudo pip3 install git+https://github.com/metwork-framework/cookiecutter_hooks.git
sudo pip3 install PyGithub
- name: "validate"
env:
GITHUB_TOKEN: ${{ secrets.GHTOK }}
LIMIT_TO_REPO: ${{ github.event.inputs.limit_to_repo }}
run: |
make validate
- name: "apply"
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GHTOK }}
USERNAME: ${{ secrets.CLONE_USERNAME }}
PASSWORD: ${{ secrets.CLONE_PASSWORD }}
LIMIT_TO_REPO: ${{ github.event.inputs.limit_to_repo }}
TARGET_BRANCH: ${{ github.event.inputs.target_branch }}
run: |
bin/delete_branch.sh