TestPrWf #3
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: TestPrWf | |
on: | |
workflow_dispatch: | |
jobs: | |
test_job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: trace step | |
run: echo "Tracing test step" | |
# Checkout the data repository | |
# ------------------------------------------- | |
# - name: checkout data repo | |
# uses: actions/checkout@v3 | |
# with: | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# repository: 'Testing-Forecast-Actions/TEST_2' | |
# ref: 'master' | |
# path: './repo/' | |
- name: checkout data repo | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- run: gh repo set-default Testing-Forecast-Actions/TEST_2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: | | |
git checkout master | |
gh repo sync Chappi74/MyTESTRepo -b master | |
git pull | |
git config --local user.email "[email protected]" | |
git config --local user.name "Chappi74" | |
git checkout -b my-branch1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: wget | |
uses: wei/wget@v1 | |
with: | |
args: -O test.csv google.com | |
- run: | | |
git add --all | |
git commit -m "Commit comment" | |
git push -u origin my-branch1 | |
# git push | |
# - name: Commit changes | |
# uses: EndBug/add-and-commit@v9 | |
# with: | |
# message: 'Testing commit' | |
# new_branch: my-branch | |
# - name: Open the pull requests | |
# run: | | |
# echo "Opening PR" | |
# gh pr create --title 'Test merge' --body 'Created by Github action' | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |