From 31d2afe6baa0a71d9f22078fa1be29ea9a647f1a Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 26 Oct 2021 13:14:50 -0400 Subject: [PATCH 1/4] Show how to run GitHub Actions CI workflows --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index abe49e3..dce65d0 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,15 @@ jobs: uses: DeterminateSystems/update-flake-lock@v3 ``` +## Running GitHub Actions CI + +GitHub Actions will not run workflows when a branch is pushed or a PR is opened by a GitHub Action. To work around this, try: + +``` +git branch -D update_flake_lock_action +git fetch origin +git checkout update_flake_lock_action +git commit --amend --no-edit +git push origin update_flake_lock_action --force +``` + From 38262be43f34b40e7a94cbbb7b2716f0c556b07d Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 27 Oct 2021 12:27:16 -0400 Subject: [PATCH 2/4] Update README.md Co-authored-by: Cole Helbling --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dce65d0..293ab79 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ jobs: ## Running GitHub Actions CI -GitHub Actions will not run workflows when a branch is pushed or a PR is opened by a GitHub Action. To work around this, try: +GitHub Actions will not run workflows when a branch is pushed by or a PR is opened by a GitHub Action. To work around this, try: ``` git branch -D update_flake_lock_action From 303111c1501adf7607eb6390db554d43ba6e0313 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 27 Oct 2021 12:29:51 -0400 Subject: [PATCH 3/4] Include the text about the update action in the PR body --- action.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/action.yml b/action.yml index 6a1ef74..e5b8d9e 100644 --- a/action.yml +++ b/action.yml @@ -30,3 +30,15 @@ runs: ``` ${{ steps.commit_message.outputs.msg }} ``` + + ### Running GitHub Actions on this PR + + GitHub Actions will not run workflows when a branch is pushed by or a PR is opened by a GitHub Action. To work around this, try: + + ```sh + git branch -D update_flake_lock_action + git fetch origin + git checkout update_flake_lock_action + git commit --amend --no-edit + git push origin update_flake_lock_action --force + ``` From acf9be7f0f887aaec9a993e4b9fd08733192034c Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 27 Oct 2021 12:31:17 -0400 Subject: [PATCH 4/4] Include instructions on running workflows in the PR body --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e5b8d9e..0d59255 100644 --- a/action.yml +++ b/action.yml @@ -33,7 +33,9 @@ runs: ### Running GitHub Actions on this PR - GitHub Actions will not run workflows when a branch is pushed by or a PR is opened by a GitHub Action. To work around this, try: + GitHub Actions will not run workflows on pull requests which are opened by a GitHub Action. + + To run GitHub Actions workflows on this PR, run: ```sh git branch -D update_flake_lock_action