Skip to content

Commit

Permalink
Change: Run enforce-admins and lock-branch from pontos package
Browse files Browse the repository at this point in the history
All GitHub scripts are provided with the latest pontos package.
Therefore there is no need in downloading them from the repo anymore.
  • Loading branch information
bjoernricks committed Jul 3, 2023
1 parent bc34c75 commit 5bc8c20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions admin-bypass/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ runs:
- name: Prepare release and store the version
run: |
source ${{ steps.virtualenv.outputs.activate }}
wget https://github.com/greenbone/pontos/raw/main/scripts/github/enforce-admins.py -O ~/enforce-admins.py
pontos-github-script ~/enforce-admins.py ${{ inputs.repository }} ${{ inputs.branch }} ${{ env.ALLOW_OPT }}
pontos-github-script pontos.github.scripts.enforce-admins ${{ inputs.repository }} ${{ inputs.branch }} ${{ env.ALLOW_OPT }}
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
3 changes: 1 addition & 2 deletions lock-branch/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ runs:
- name: Prepare release and store the version
run: |
source ${{ steps.virtualenv.outputs.activate }}
wget https://github.com/greenbone/pontos/raw/main/scripts/github/lock-branch.py -O ~/lock-branch.py
pontos-github-script ~/lock-branch.py ${{ inputs.repository }} ${{ inputs.branch }} ${{ env.LOCK_OPT }}
pontos-github-script pontos.github.scripts.lock-branch ${{ inputs.repository }} ${{ inputs.branch }} ${{ env.LOCK_OPT }}
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github-token }}

0 comments on commit 5bc8c20

Please sign in to comment.