"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file ".github/workflows/release-pontos-patch.yml" between
gvm-libs-21.4.1.tar.gz and gvm-libs-21.4.2.tar.gz

About: GVM Libraries for the Greenbone Vulnerability Management (GVM-10) framework (derived from the former openvas-libraries).

release-pontos-patch.yml  (gvm-libs-21.4.1):release-pontos-patch.yml  (gvm-libs-21.4.2)
skipping to change at line 14 skipping to change at line 14
pull_request: pull_request:
types: [closed] types: [closed]
branches: [ 'gvm-libs-21.04', 'gvm-libs-20.08' ] branches: [ 'gvm-libs-21.04', 'gvm-libs-20.08' ]
jobs: jobs:
release-patch: release-patch:
env: env:
GITHUB_USER: ${{ secrets.GREENBONE_BOT }} GITHUB_USER: ${{ secrets.GREENBONE_BOT }}
GITHUB_MAIL: ${{ secrets.GREENBONE_BOT_MAIL }} GITHUB_MAIL: ${{ secrets.GREENBONE_BOT_MAIL }}
GITHUB_TOKEN: ${{ secrets.GREENBONE_BOT_TOKEN }} GITHUB_TOKEN: ${{ secrets.GREENBONE_BOT_TOKEN }}
GPG_KEY: ${{ secrets.GPG_KEY }}
GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
name: Release patch with pontos name: Release patch with pontos
# If the label 'make patch release' is set. If PR is closed because of an me rge # If the label 'make patch release' is set. If PR is closed because of an me rge
if: contains( github.event.pull_request.labels.*.name, 'make patch release') && github.event.pull_request.merged == true if: contains( github.event.pull_request.labels.*.name, 'make patch release') && github.event.pull_request.merged == true
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
persist-credentials: false persist-credentials: false
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
skipping to change at line 38 skipping to change at line 41
apt-get update && apt-get --assume-yes install python3-venv apt-get update && apt-get --assume-yes install python3-venv
python3 -m venv .venv python3 -m venv .venv
. .venv/bin/activate . .venv/bin/activate
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install --upgrade pontos python -m pip install --upgrade pontos
- name: Tell git who I am - name: Tell git who I am
run: | run: |
git config --global user.name "${{ env.GITHUB_USER }}" git config --global user.name "${{ env.GITHUB_USER }}"
git config --global user.email "${{ env.GITHUB_MAIL }}" git config --global user.email "${{ env.GITHUB_MAIL }}"
git remote set-url origin https://${{ env.GITHUB_TOKEN }}@github.com/${{ github.repository }} git remote set-url origin https://${{ env.GITHUB_TOKEN }}@github.com/${{ github.repository }}
- name: Print base branch - name: Print base branch
# we always should've checked out the correct branch' # we always should've checked out the correct branch'
run: echo "Current Branch is $GITHUB_BASE_REF" run: echo "Current Branch is $GITHUB_BASE_REF"
- name: Prepare patch release with pontos - name: Prepare patch release with pontos
run: | run: |
. .venv/bin/activate . .venv/bin/activate
pontos-release prepare --patch pontos-release prepare --patch
echo "VERSION=$(poetry run pontos-version show)" >> $GITHUB_ENV
- name: Release with pontos - name: Release with pontos
run: | run: |
. .venv/bin/activate . .venv/bin/activate
pontos-release release pontos-release release
- name: Import key from secrets
run: |
echo -e "${{ env.GPG_KEY }}" >> tmp.file
gpg \
--pinentry-mode loopback \
--passphrase ${{ env.GPG_PASSPHRASE }} \
--import tmp.file
rm tmp.file
- name: Sign with pontos-release sign
run: |
echo "Signing assets for ${{env.VERSION}}"
. .venv/bin/activate
pontos-release sign \
--signing-key ${{ env.GPG_FINGERPRINT }} \
--passphrase ${{ env.GPG_PASSPHRASE }} \
--release-version ${{ env.VERSION }}
 End of changes. 4 change blocks. 
1 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)