Create docker-image.yml #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Example Integration on Pull Request | |
on: | |
pull_request_target: | |
branches: | |
- main | |
types: | |
- closed | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Plant a Tree | |
if: github.event.pull_request.merged == true | |
id: planttree | |
uses: protontypes/continuous-reforestation@main | |
with: | |
# Enter your API variables below | |
apikey: ${{ secrets.raaskey }} | |
enterpriseid: "cd7cedcd" | |
user: ${{ github.actor }} | |
treecount: 5 | |
projectid: "14442771" # This projectid can be used to have your trees planted where they are needed the most. | |
production: "false" | |
- name: Response of digitalhumani.com RaaS API | |
run: | | |
echo "${{ steps.planttree.outputs.response }}" | |
echo "${{ steps.planttree.outputs.plantedTrees }}" |