Skip to content

Commit

Permalink
Update gh-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
antolo-arch committed Jul 4, 2023
1 parent b6f7aea commit 7fd1557
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/gh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,25 @@ on:
workflow_dispatch:
push:
branches:
- main
- test_flow

jobs:
gh_release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Get the release script
run: |
wget https://raw.githubusercontent.com/Adyen/adyen-node-api-library/develop/.github/scripts/release.js -P ./.github/scripts
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
- name: Get the release script
run: |
wget https://raw.githubusercontent.com/Adyen/adyen-node-api-library/develop/.github/scripts/release.js -P ./.github/scripts
- name: Grab version
uses: actions/github-script@v6
id: release
with:
script: |
const release = require('./.github/scripts/release.js')
core.setOutput('version', release.setupPythonVersion())
- name: Create new release
env:
GH_TOKEN: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
run: |
gh release create v${{steps.release.outputs.version}} \
--title 'Adyen Python API Library v${{steps.release.outputs.version}}' \
--generate-notes --target main
- name: Delete the release script
run: |
rm -f ./.github/scripts/release.js
- name: Update develop branch
run: |
git checkout develop
git merge main
git push origin develop

0 comments on commit 7fd1557

Please sign in to comment.