Skip to content

Commit

Permalink
adjust ci
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpeteuil committed Jan 3, 2024
1 parent edf5bec commit ccbb255
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Release
run-name: push v${{ github.event.release.tag_name }} to web
# Description: Publish script to another repo hosting a GitHub Pages website
#
# required values:
# var.SCRIPT_NAME : name of the script to publish
# secrets.API_TOKEN_GITHUB : github token with write access to the repo

name: publish-to-web
run-name: push ${{ github.event.release.tag_name }} to web

on:
release:
Expand All @@ -12,19 +18,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Copy File
run: cp hcinstall.sh hcinstall

- name: Push scripts
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: 'hcinstall'
source_file: ${{ vars.SCRIPT_NAME }}
destination_repo: 'robertpeteuil/iac.sh'
destination_branch: 'master'
destination_folder: 'docs'
user_email: 'actions@github.com'
user_name: 'release-action'
commit_message: 'update to v${{ github.event.release.tag_name }} from ${{ github.repository }}'

commit_message: 'update to ${{ github.event.release.tag_name }} from ${{ github.repository }}'

0 comments on commit ccbb255

Please sign in to comment.